Refactor roles to support new variable schema

Add common-env and docker roles
This commit is contained in:
2020-03-17 22:51:10 -04:00
parent 1f3ca79d04
commit dc1395daf1
14 changed files with 144 additions and 112 deletions

View File

@@ -2,13 +2,13 @@
- name: Clean DNF cache
become: true
when: ansible_distribution == "Fedora" or (ansible_distribution == "CentOS" and ansible_distribution_major_version == "8")
shell:
cmd: dnf clean all
command:
cmd: /usr/bin/dnf clean all
warn: false
- name: Clean YUM cache
become: true
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
shell:
cmd: yum clean all
command:
cmd: /usr/bin/yum clean all
warn: false