Allow the usage of local facts

Ansible could be used with local facts, but we don't create
the ansible local facts folder by default.

This makes possible to use local facts, with no downside.

Change-Id: Ie4a47e85bf31e1ac3a2bd6f0dec510bb24abdbbd
This commit is contained in:
Jean-Philippe Evrard
2017-03-31 10:49:28 +00:00
parent 193e6f2ef6
commit 2931d0c87a
2 changed files with 2 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ lxc_cache_map:
- /etc/localtime
cache_prep_commands: |
{{ lxc_cache_prep_pre_commands }}
mkdir -p /etc/ansible/facts.d/
if [ -a /etc/resolv.conf ]; then
mv /etc/resolv.conf /etc/resolv.conf.org
fi

View File

@@ -51,6 +51,7 @@ lxc_cache_map:
- /root/repo.keys
cache_prep_commands: |
{{ lxc_cache_prep_pre_commands }}
mkdir -p /etc/ansible/facts.d/
if [ -a /etc/resolv.conf ]; then
mv /etc/resolv.conf /etc/resolv.conf.org
fi