Add Fedora support.

This commit is contained in:
Jeff Geerling 2016-09-17 19:13:09 -05:00
parent dc569f2308
commit de517840c7
4 changed files with 14 additions and 2 deletions

View File

@ -8,6 +8,9 @@ env:
- distro: centos6
init: /sbin/init
run_opts: ""
- distro: fedora24
init: /usr/lib/systemd/systemd
run_opts: "--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro"
- distro: ubuntu1604
init: /lib/systemd/systemd
run_opts: "--privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro"

View File

@ -6,12 +6,15 @@ galaxy_info:
description: Ansible for RedHat/CentOS/Debian/Ubuntu.
company: "Midwestern Mac, LLC"
license: "license (BSD, MIT)"
min_ansible_version: 1.8
min_ansible_version: 2.0
platforms:
- name: EL
versions:
- 6
- 7
- name: Fedora
versions:
- all
- name: Debian
versions:
- all

View File

@ -1,7 +1,10 @@
---
# Setup/install tasks.
- include: setup-RedHat.yml
when: ansible_os_family == 'RedHat'
when: ansible_os_family == 'RedHat' and ansible_distribution != 'Fedora'
- include: setup-Fedora.yml
when: ansible_distribution == 'Fedora'
- include: setup-Ubuntu.yml
when: ansible_distribution == 'Ubuntu'

3
tasks/setup-Fedora.yml Normal file
View File

@ -0,0 +1,3 @@
---
- name: Install Ansible.
package: name=ansible state=present