|
|
|
@ -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'
|
|
|
|
|