2016-07-27 00:53:08 +02:00
|
|
|
---
|
|
|
|
|
- name: install dependencies for RHEL, Fedora & CentOS
|
|
|
|
|
yum:
|
|
|
|
|
name: "{{ item }}"
|
|
|
|
|
update_cache: yes
|
|
|
|
|
state: present
|
|
|
|
|
with_items:
|
2018-09-03 20:40:10 +02:00
|
|
|
- "{{ directadmin_rhel_packages_generic }}"
|
2016-07-27 00:53:08 +02:00
|
|
|
|
|
|
|
|
- name: install everywhere but on CentOS7
|
2018-09-03 20:40:10 +02:00
|
|
|
yum:
|
2016-07-27 00:53:08 +02:00
|
|
|
name: "{{ item }}"
|
|
|
|
|
update_cache: yes
|
|
|
|
|
state: present
|
|
|
|
|
with_items:
|
2018-09-03 20:40:10 +02:00
|
|
|
- "{{ directadmin_rhel_packages }}"
|
2016-07-27 00:53:08 +02:00
|
|
|
when: ansible_distribution not 'CentOS' and ansible_distribution_version|version_compare('ne', 7)
|
|
|
|
|
|
|
|
|
|
- name: install CentOS 7 specific requirements
|
|
|
|
|
yum:
|
|
|
|
|
name: "{{ item }}"
|
2018-09-03 20:40:10 +02:00
|
|
|
update_cache: yes
|
2016-07-27 00:53:08 +02:00
|
|
|
state: present
|
|
|
|
|
with_items:
|
2018-09-03 20:40:10 +02:00
|
|
|
- "{{ directadmin_centos7_packages }}"
|
2016-07-27 00:53:08 +02:00
|
|
|
when: ansible_distribution == 'CentOS' and ansible_distribution_version|version_compare('=', 7)
|