Move chdir under args for shell task

This should fix a syntax issue on ansible 2.7.

Change-Id: I006ff64c40875b8f1edd1e9f9bdfe509e2bdb295
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2019-03-19 19:17:01 -04:00
parent 05d6187825
commit a5dbe86b4b
1 changed files with 2 additions and 1 deletions

View File

@ -83,7 +83,8 @@
- name: Rename log files that match extension_list
shell: "mv {{ item.path }} {{ item.path | regex_replace(extensions_regex, '\\1_\\2.txt') }}"
with_items: "{{ log_files_to_rename.files }}"
chdir: "{{ stage_dir }}/logs"
args:
chdir: "{{ stage_dir }}/logs"
tags:
- skip_ansible_lint