support centos

master
neingeist 4 years ago
parent 3a74407e00
commit 7c05b4b733

@ -1,5 +1,5 @@
---
- name: "install etckeeper (fedora)"
- name: "install etckeeper (fedora/centos/redhat)"
dnf:
name:
- git
@ -7,7 +7,7 @@
- hostname
- mailx
- etckeeper
when: ansible_distribution == 'Fedora'
when: ansible_os_family == 'RedHat'
- name: "install etckeeper (debian)"
apt:
name:
@ -21,7 +21,7 @@
set_fact: highlevel_package_manager='dnf'
- name: "lowlevel package manager is rpm"
set_fact: lowlevel_package_manager='rpm'
when: ansible_distribution == 'Fedora'
when: ansible_os_family == 'RedHat'
- block:
- name: "package manager is apt"
set_fact: highlevel_package_manager='apt'

Loading…
Cancel
Save