let us try this to add vmhost to cached facts
This commit is contained in:
parent
b970b7bb55
commit
ab927fcd31
1 changed files with 12 additions and 0 deletions
|
@ -5,6 +5,18 @@
|
||||||
# Things in here are things we want to do to every machine no matter what.
|
# Things in here are things we want to do to every machine no matter what.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
- name: setup a /etc/ansible/fact.d dir if needed.
|
||||||
|
file: path="/etc/ansible/facts.d/" state=directory mode=0700
|
||||||
|
when: vmhost is defined
|
||||||
|
tags:
|
||||||
|
- vmhost_fact
|
||||||
|
|
||||||
|
- name: set a vmhost fact on vmguests
|
||||||
|
copy: content="{{vmhost}}" dest=/etc/ansible/facts.d/vmhost.fact
|
||||||
|
when: vmhost is defined
|
||||||
|
tags:
|
||||||
|
- vmhost_fact
|
||||||
|
|
||||||
- name: ensure packages required for semanage are installed (yum)
|
- name: ensure packages required for semanage are installed (yum)
|
||||||
package: name={{ item }} state=present
|
package: name={{ item }} state=present
|
||||||
when: ansible_distribution_major_version|int < 22
|
when: ansible_distribution_major_version|int < 22
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue