diff --git a/.travis.yml b/.travis.yml index 2992c92..5fb884f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ services: docker env: - distro: centos7 - distro: centos6 + - distro: fedora27 - distro: ubuntu1804 - distro: ubuntu1604 - distro: ubuntu1404 diff --git a/meta/main.yml b/meta/main.yml index 2bd0b33..16fc86a 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -11,6 +11,9 @@ galaxy_info: - name: EL versions: - all + - name: Fedora + versions: + - all - name: Amazon versions: - all diff --git a/tasks/setup-RedHat.yml b/tasks/setup-RedHat.yml index 6021b9f..8ef2ac9 100644 --- a/tasks/setup-RedHat.yml +++ b/tasks/setup-RedHat.yml @@ -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'