mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2024-12-22 02:50:19 +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:
|
||||
- distro: centos7
|
||||
- distro: centos6
|
||||
- distro: fedora27
|
||||
- distro: ubuntu1804
|
||||
- distro: ubuntu1604
|
||||
- distro: ubuntu1404
|
||||
|
|
|
@ -11,6 +11,9 @@ galaxy_info:
|
|||
- name: EL
|
||||
versions:
|
||||
- all
|
||||
- name: Fedora
|
||||
versions:
|
||||
- all
|
||||
- name: Amazon
|
||||
versions:
|
||||
- all
|
||||
|
|
|
@ -1,7 +1,16 @@
|
|||
---
|
||||
- name: Ensure Apache is installed on RHEL.
|
||||
- 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'
|
||||
|
|
Loading…
Reference in a new issue