Refactor roles to support new variable schema
Add common-env and docker roles
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user