mirror of https://github.com/ceph/ceph-ansible.git
Disable facts by default in ansible.cfg
As a continuation ofpull/6389/heada7f2fa73e6
, this change switches fact injection to off by default in the provided ansible.cfg. Signed-off-by: Alex Schultz <aschultz@redhat.com> (cherry picked from commitdb031a4993
)
parent
7ddbe74712
commit
6229b3bdba
|
@ -21,6 +21,7 @@ nocows = 1
|
||||||
callback_whitelist = profile_tasks
|
callback_whitelist = profile_tasks
|
||||||
stdout_callback = yaml
|
stdout_callback = yaml
|
||||||
force_valid_group_names = ignore
|
force_valid_group_names = ignore
|
||||||
|
inject_facts_as_vars = False
|
||||||
|
|
||||||
# Disable them in the context of https://review.openstack.org/#/c/469644
|
# Disable them in the context of https://review.openstack.org/#/c/469644
|
||||||
retry_files_enabled = False
|
retry_files_enabled = False
|
||||||
|
|
|
@ -23,6 +23,16 @@
|
||||||
discovered_interpreter_python: "{{ ansible_python_interpreter }}"
|
discovered_interpreter_python: "{{ ansible_python_interpreter }}"
|
||||||
when: ansible_python_interpreter is defined
|
when: ansible_python_interpreter is defined
|
||||||
|
|
||||||
|
# If ansible_python_interpreter is not defined, this can result in the
|
||||||
|
# discovered_interpreter_python fact from being set. This fails later in this
|
||||||
|
# playbook and is used elsewhere.
|
||||||
|
- name: set_fact discovered_interpreter_python if not previously set
|
||||||
|
set_fact:
|
||||||
|
discovered_interpreter_python: "{{ ansible_facts['discovered_interpreter_python'] }}"
|
||||||
|
when:
|
||||||
|
- discovered_interpreter_python is not defined
|
||||||
|
- ansible_facts['discovered_interpreter_python'] is defined
|
||||||
|
|
||||||
# Set ceph_release to ceph_stable by default
|
# Set ceph_release to ceph_stable by default
|
||||||
- name: set_fact ceph_release ceph_stable_release
|
- name: set_fact ceph_release ceph_stable_release
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|
Loading…
Reference in New Issue