Fix ansible syntax to avoid ansible warnings (one more) (#3536)

* warning on meta flush_handlers

* avoid rm

* avoid "Module remote_tmp /root/.ansible/tmp did not exist and was created with a mode of 0700, this may cause issues when running as another user. To avoid this, create the remote_tmp dir with the correct permissions manually" warning on subsequent tasks using blockinfile

* is match
This commit is contained in:
Erwan Miran
2018-10-17 21:27:11 +02:00
committed by k8s-ci-robot
parent 52b5309385
commit 87193fd270
7 changed files with 23 additions and 8 deletions

View File

@@ -41,6 +41,12 @@
- import_tasks: setup-pipelining.yml
- name: Create remote_tmp for it is used by another module
file:
path: "{{ lookup('config', 'DEFAULT_REMOTE_TMP', on_missing='skip', wantlist=True) | first | default('~/.ansible/tmp') }}"
state: directory
mode: 0700
- name: Gather nodes hostnames
setup:
gather_subset: '!all'