ansible-role-apache/tasks/setup-RedHat.yml

17 lines
481 B
YAML
Raw Normal View History

---
- name: Ensure Apache is installed (via yum).
2014-10-06 02:13:00 +02:00
yum:
name: "{{ item }}"
state: "{{ apache_packages_state }}"
2014-10-06 02:13:00 +02:00
enablerepo: "{{ apache_enablerepo }}"
with_items: "{{ apache_packages }}"
when: ansible_distribution != 'Fedora'
- name: Ensure Apache is installed (via dnf).
dnf:
name: "{{ item }}"
state: "{{ apache_packages_state }}"
enablerepo: "{{ apache_enablerepo }}"
with_items: "{{ apache_packages }}"
when: ansible_distribution == 'Fedora'