Gather minimal facts to use ansible_distribution
We tried to use `ansible_distribution` variable for localhost but we never gathered facts for it, so in real deployments we always fallback to rescue block. Change-Id: I7a01cb019a32c7d2b0fa8a326826ab2cf288939a
This commit is contained in:
parent
d0b3bfe07f
commit
ab8ed8b7c9
@ -19,6 +19,10 @@
|
|||||||
user: root
|
user: root
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: Gather minimal facts
|
||||||
|
setup:
|
||||||
|
gather_subset: '!all'
|
||||||
|
|
||||||
- name: Remove target directory if required
|
- name: Remove target directory if required
|
||||||
file:
|
file:
|
||||||
path: "{{ item.path | default(role_path_default) }}/{{ item.name | default(item.src | basename) }}"
|
path: "{{ item.path | default(role_path_default) }}/{{ item.name | default(item.src | basename) }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user