Files
ansible-directadmin/tasks/prerequisites-RedHat.yml
hyperized 160620477e Bring role up to spec (2.5+, Debian 9) and introduce LetsEncrypt support (#5)
* Bring role up to spec (2.5+) and introduce LetsEncrypt support
* Add Debian 9 support and fix script args chdir
* Use correct schema for travis and use command instead of script
* Make use of requirements.txt for build and fix syntax
* Got better at reading the docs now
* Minor improvements
2018-09-17 15:12:03 +02:00

31 lines
726 B
YAML

---
- name: install dependencies for RHEL, Fedora & CentOS
yum:
name: "{{ item }}"
update_cache: yes
state: present
with_items:
- "{{ directadmin_rhel_generic_packages }}"
- name: install everywhere but on CentOS7
yum:
name: "{{ item }}"
update_cache: yes
state: present
with_items:
- "{{ directadmin_rhel_packages }}"
when:
- ansible_distribution not 'CentOS'
- ansible_distribution_version is version(7, 'ne')
- name: install CentOS 7 specific requirements
yum:
name: "{{ item }}"
update_cache: yes
state: present
with_items:
- "{{ directadmin_centos7_packages }}"
when:
- ansible_distribution is 'CentOS'
- ansible_distribution_version is version(7, '=')