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

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

8 9 10
- name: Install arstats repo files
  yum: name={{ arstats_release_url }}{{ arstats_release_name }}
       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 31 32

- name: Install cloudera-cdh4 repo
  tags: cloudera-cdh4_repo
  copy: src=etc/yum.repos.d/cloudera-cdh4.repo
        dest=/etc/yum.repos.d/cloudera-cdh4.repo backup=no
        owner=root group=root mode=0644
  when: inventory_hostname in groups.standalone