Switching the delete param handler to use rm

It seems ansible is walking through the files before delete it and
there are a lot of files, it's adding 205-40 minutes in the overcloud
deployment, causing time out in the jobs.

Change-Id: I84ff0350f97a376d7520a5fd460836f21c1ef801
This commit is contained in:
Arx Cruz 2019-09-20 16:17:03 +02:00 committed by Kevin Carter (cloudnull)
parent f7892da477
commit c344374502
1 changed files with 2 additions and 6 deletions

View File

@ -16,15 +16,11 @@
- name: Delete param file
file:
dest: "{{ prepare_param.path }}"
state: absent
command: "rm -rf '{{ prepare_param.path }}'"
check_mode: false
become: true
- name: Delete role file
file:
dest: "{{ role_data.path }}"
state: absent
command: "rm -rf '{{ role_data.path }}'"
check_mode: false
become: true