Restructure a bit the secondary01 playbook
This commit is contained in:
parent
6bc652b8fb
commit
ec74b9d487
1 changed files with 20 additions and 25 deletions
|
@ -60,18 +60,17 @@
|
||||||
handlers:
|
handlers:
|
||||||
- include: "{{ handlers }}/restart_services.yml"
|
- include: "{{ handlers }}/restart_services.yml"
|
||||||
|
|
||||||
- name: clean yum metadata
|
- name: Set up the rest of the box as desired
|
||||||
hosts: secondary01
|
hosts: secondary01
|
||||||
user: root
|
user: root
|
||||||
gather_facts: False
|
gather_facts: True
|
||||||
|
|
||||||
|
- name: clean yum metadata
|
||||||
action: yum clean all
|
action: yum clean all
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
- name: install needed packages
|
- name: install needed packages
|
||||||
hosts: secondary01
|
|
||||||
user: root
|
|
||||||
gather_facts: False
|
|
||||||
yum: pkg={{ item }} state=present
|
yum: pkg={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- nfs-utils
|
- nfs-utils
|
||||||
|
@ -80,12 +79,8 @@
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
- name: set sebooleans so httpd can use nfs
|
- name: set sebooleans so httpd can use nfs
|
||||||
hosts: secondary01
|
|
||||||
user: root
|
|
||||||
gather_facts: False
|
|
||||||
action: seboolean name={{ item }}
|
action: seboolean name={{ item }}
|
||||||
state=true
|
state=true
|
||||||
persistent=true
|
persistent=true
|
||||||
with_items:
|
with_items:
|
||||||
- httpd_use_nfs
|
- httpd_use_nfs
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue