ansible-role-apache/tasks/setup-RedHat.yml
2018-04-26 22:07:42 -05:00

16 lines
481 B
YAML

---
- name: Ensure Apache is installed (via yum).
yum:
name: "{{ item }}"
state: "{{ apache_packages_state }}"
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'