mirror of
https://github.com/geerlingguy/ansible-role-ansible.git
synced 2024-11-22 11:35:11 +01:00
Add Fedora support.
This commit is contained in:
parent
dc569f2308
commit
de517840c7
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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
3
tasks/setup-Fedora.yml
Normal file
@ -0,0 +1,3 @@
|
||||
---
|
||||
- name: Install Ansible.
|
||||
package: name=ansible state=present
|
Loading…
Reference in New Issue
Block a user