main.yml 1.51 KB
Newer Older
Paschalis Korosoglou's avatar
Paschalis Korosoglou committed
1
2
---

3
- name: Install epel repo files
4
  yum: name={{ epel_release }}
5
       state=present
6
  when: ansible_distribution == 'CentOS' and ansible_distribution_major_version == '6'
Paschalis Korosoglou's avatar
Paschalis Korosoglou committed
7

8
9
10
11
12
- name: Install argo repository definitions
  tags: argo_repo
  copy: src=etc/yum.repos.d/argo.repo
        dest=/etc/yum.repos.d/argo.repo backup=no
        owner=root group=root mode=0644
13
  when: ansible_distribution == 'CentOS' and ansible_distribution_major_version == '6'
Paschalis Korosoglou's avatar
Paschalis Korosoglou committed
14
15
16

- name: Install mongodb repo
  tags: mongodb_repo
Pavlos Daoglou's avatar
Pavlos Daoglou committed
17
18
19
  copy: src=etc/yum.repos.d/mongodb_3.repo
        dest=/etc/yum.repos.d/mongodb_3.repo backup=no
        owner=root group=root mode=0644
Paschalis Korosoglou's avatar
Paschalis Korosoglou committed
20
  when: inventory_hostname in groups.standalone or inventory_hostname in groups.webapi
21
22
23
24
25
26

- name: Install EGI-trustanchors repository definitions
  tags: ca_bundle_repo
  copy: src=etc/yum.repos.d/EGI-trustanchors.repo
        dest=/etc/yum.repos.d/EGI-trustanchors.repo backup=no
        owner=root group=root mode=0644
Paschalis Korosoglou's avatar
Paschalis Korosoglou committed
27
  when: inventory_hostname in groups.standalone or inventory_hostname in groups.webui
28

29
30
31
32
- name: Install cloudera-cdh5 repo
  tags: cloudera-cdh5_repo
  copy: src=etc/yum.repos.d/cloudera-cdh5.repo
        dest=/etc/yum.repos.d/cloudera-cdh5.repo backup=no
33
34
        owner=root group=root mode=0644
  when: inventory_hostname in groups.standalone
35
36
37
38
39
40
41

- name: Install Nagios repo
  tags: monitoring_engine_repo
  copy: src=etc/yum.repos.d/nagios.repo
        dest=/etc/yum.repos.d/nagios.repo backup=no
        owner=root group=root mode=0644
  when: inventory_hostname in groups.monitoring_engine