mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-03 00:30:18 +01:00
Fixes #153: Add support and tests for Fedora.
This commit is contained in:
parent
c8c80dd3ac
commit
6c8b577f0e
3 changed files with 14 additions and 1 deletions
|
@ -4,6 +4,7 @@ services: docker
|
||||||
env:
|
env:
|
||||||
- distro: centos7
|
- distro: centos7
|
||||||
- distro: centos6
|
- distro: centos6
|
||||||
|
- distro: fedora27
|
||||||
- distro: ubuntu1804
|
- distro: ubuntu1804
|
||||||
- distro: ubuntu1604
|
- distro: ubuntu1604
|
||||||
- distro: ubuntu1404
|
- distro: ubuntu1404
|
||||||
|
|
|
@ -11,6 +11,9 @@ galaxy_info:
|
||||||
- name: EL
|
- name: EL
|
||||||
versions:
|
versions:
|
||||||
- all
|
- all
|
||||||
|
- name: Fedora
|
||||||
|
versions:
|
||||||
|
- all
|
||||||
- name: Amazon
|
- name: Amazon
|
||||||
versions:
|
versions:
|
||||||
- all
|
- all
|
||||||
|
|
|
@ -1,7 +1,16 @@
|
||||||
---
|
---
|
||||||
- name: Ensure Apache is installed on RHEL.
|
- name: Ensure Apache is installed (via yum).
|
||||||
yum:
|
yum:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: "{{ apache_packages_state }}"
|
state: "{{ apache_packages_state }}"
|
||||||
enablerepo: "{{ apache_enablerepo }}"
|
enablerepo: "{{ apache_enablerepo }}"
|
||||||
with_items: "{{ apache_packages }}"
|
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'
|
||||||
|
|
Loading…
Reference in a new issue