make it more generic and remove the fedora/rhel specific tasks
This commit is contained in:
parent
b04806035f
commit
db0c7ab9ea
3 changed files with 18 additions and 43 deletions
|
@ -26,67 +26,37 @@
|
|||
- config
|
||||
|
||||
|
||||
- name: default packages to install
|
||||
- name: global default packages to install
|
||||
action: yum state=installed name=$item
|
||||
with_items:
|
||||
- bind-utils
|
||||
- joe
|
||||
- mailx
|
||||
- nc
|
||||
- openssh-clients
|
||||
- patch
|
||||
- postfix
|
||||
- rsync
|
||||
- strace
|
||||
- telnet
|
||||
- tmpwatch
|
||||
- traceroute
|
||||
- vim-enhanced
|
||||
- xz
|
||||
- zsh
|
||||
with_items: $global_pkgs_inst
|
||||
tags:
|
||||
- packages
|
||||
|
||||
#### RHEL SPECIFIC - see the only_if
|
||||
- name: default pkgs to remove on rhel
|
||||
action: yum state=removed name=$item
|
||||
with_items:
|
||||
- logwatch
|
||||
- firstboot-tui
|
||||
- bluez-utils
|
||||
- sendmail
|
||||
only_if: '$is_rhel'
|
||||
tags:
|
||||
- packages
|
||||
|
||||
|
||||
### END RHEL SPECIFIC ####
|
||||
|
||||
### FEDORA SPECIFIC BITS ####
|
||||
|
||||
- name: default pkgs to remove on fedora
|
||||
- name: dist pkgs to remove
|
||||
action: yum state=removed name=$item
|
||||
with_items: $base_pkgs_erase
|
||||
only_if: '$is_fedora'
|
||||
tags:
|
||||
- packages
|
||||
|
||||
- name: pkgs to install on fedora
|
||||
- name: dist pkgs to install
|
||||
action: yum state=installed name=$item
|
||||
with_items: $base_pkgs_inst
|
||||
only_if: '$is_fedora'
|
||||
tags:
|
||||
- packages
|
||||
|
||||
- name: disabled services on fedora
|
||||
- name: dist disabled services
|
||||
action: service state=stopped enabled=false name=$item
|
||||
with_items: $service_disabled
|
||||
only_if: '$is_fedora'
|
||||
tags:
|
||||
- service
|
||||
- config
|
||||
|
||||
#### END FEDORA SPECIFIC ####
|
||||
- name: dist enabled services
|
||||
action: service state=running enabled=true name=$item
|
||||
with_items: $service_enabled
|
||||
tags:
|
||||
- service
|
||||
- config
|
||||
|
||||
|
||||
- name: iptables
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
---
|
||||
dist_tag: el${ansible_distribution_version[0]}
|
||||
base_pkgs_inst: [ ]
|
||||
base_pkgs_erase: [ ]
|
||||
base_pkgs_inst: []
|
||||
base_pkgs_erase: ['logwatch','firstboot-tui','bluez-utils', 'sendmail']
|
||||
service_disabled: []
|
||||
service_enabled: []
|
||||
|
|
|
@ -16,3 +16,6 @@ f18_qcow_id: ami-00000016
|
|||
el6_ami_id: ami-0000000e
|
||||
f17_qcow_id: ami-00000001
|
||||
f19_qcow_id: ami-00000018
|
||||
global_pkgs_inst: ['bind-utils', 'joe', 'mailx', 'nc', 'openssh-clients',
|
||||
'patch', 'postfix', 'rsync', 'strace', 'telnet',
|
||||
'tmpwatch', 'traceroute', 'vim-enhanced', 'xz', 'zsh' ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue