main.yml 1.18 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
- name: Install arstats repo files
9
  yum: name={{ arstats_release }}
10
       state=present
11
  when: ansible_distribution == 'CentOS' and ansible_distribution_major_version == '6'
Paschalis Korosoglou's avatar
Paschalis Korosoglou committed
12 13 14

- name: Install mongodb repo
  tags: mongodb_repo
Pavlos Daoglou's avatar
Pavlos Daoglou committed
15 16 17
  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
18
  when: inventory_hostname in groups.standalone or inventory_hostname in groups.webapi
19 20 21 22 23 24

- 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
25
  when: inventory_hostname in groups.standalone or inventory_hostname in groups.webui
26

27 28 29 30
- 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
31 32
        owner=root group=root mode=0644
  when: inventory_hostname in groups.standalone