mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-08 02:50:18 +01:00
16 lines
481 B
YAML
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'
|