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: dnf:
name: name:
- git - git
@ -7,7 +7,7 @@
- hostname - hostname
- mailx - mailx
- etckeeper - etckeeper
when: ansible_distribution == 'Fedora' when: ansible_os_family == 'RedHat'
- name: "install etckeeper (debian)" - name: "install etckeeper (debian)"
apt: apt:
name: name:
@ -21,7 +21,7 @@
set_fact: highlevel_package_manager='dnf' set_fact: highlevel_package_manager='dnf'
- name: "lowlevel package manager is rpm" - name: "lowlevel package manager is rpm"
set_fact: lowlevel_package_manager='rpm' set_fact: lowlevel_package_manager='rpm'
when: ansible_distribution == 'Fedora' when: ansible_os_family == 'RedHat'
- block: - block:
- name: "package manager is apt" - name: "package manager is apt"
set_fact: highlevel_package_manager='apt' set_fact: highlevel_package_manager='apt'

Loading…
Cancel
Save