Fixes #153: Add support and tests for Fedora.

This commit is contained in:
Jeff Geerling 2018-04-26 22:07:42 -05:00
parent c8c80dd3ac
commit 6c8b577f0e
3 changed files with 14 additions and 1 deletions

View file

@ -4,6 +4,7 @@ services: docker
env:
- distro: centos7
- distro: centos6
- distro: fedora27
- distro: ubuntu1804
- distro: ubuntu1604
- distro: ubuntu1404

View file

@ -11,6 +11,9 @@ galaxy_info:
- name: EL
versions:
- all
- name: Fedora
versions:
- all
- name: Amazon
versions:
- all

View file

@ -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'