try out lists of base removals as vars instead of with_items
This commit is contained in:
parent
9b947b13db
commit
b04806035f
3 changed files with 10 additions and 9 deletions
|
@ -66,26 +66,21 @@
|
||||||
|
|
||||||
- name: default pkgs to remove on fedora
|
- name: default pkgs to remove on fedora
|
||||||
action: yum state=removed name=$item
|
action: yum state=removed name=$item
|
||||||
with_items:
|
with_items: $base_pkgs_erase
|
||||||
- firewalld
|
|
||||||
- PackageKit*
|
|
||||||
- sendmail
|
|
||||||
- at
|
|
||||||
only_if: '$is_fedora'
|
only_if: '$is_fedora'
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
- name: pkgs to install on fedora
|
- name: pkgs to install on fedora
|
||||||
action: yum state=installed name=$item
|
action: yum state=installed name=$item
|
||||||
with_items:
|
with_items: $base_pkgs_inst
|
||||||
- iptables-services
|
|
||||||
only_if: '$is_fedora'
|
only_if: '$is_fedora'
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
- name: disabled services on fedora
|
- name: disabled services on fedora
|
||||||
action: service state=stopped enabled=false name=$item
|
action: service state=stopped enabled=false name=$item
|
||||||
with_items:
|
with_items: $service_disabled
|
||||||
only_if: '$is_fedora'
|
only_if: '$is_fedora'
|
||||||
tags:
|
tags:
|
||||||
- service
|
- service
|
||||||
|
|
|
@ -1,2 +1,6 @@
|
||||||
---
|
---
|
||||||
dist_tag: f${ansible_distribution_version}
|
dist_tag: f${ansible_distribution_version}
|
||||||
|
base_pkgs_inst: ['iptables-services' ]
|
||||||
|
base_pkgs_erase: ['firewalld', 'PackageKit*', 'sendmail', 'at']
|
||||||
|
service_disabled: [ ]
|
||||||
|
service_enabled: [ ]
|
|
@ -1,2 +1,4 @@
|
||||||
---
|
---
|
||||||
dist_tag: el${ansible_distribution_version[0]}
|
dist_tag: el${ansible_distribution_version[0]}
|
||||||
|
base_pkgs_inst: [ ]
|
||||||
|
base_pkgs_erase: [ ]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue