Create container-puppet-tasks files per step in check mode

In check mode, we still create the container-puppet-tasks json files,
they are later processed, even in dry run.

Change-Id: If999952c6cc0c9bf03ca745bddcf79c395a44e98
This commit is contained in:
Emilien Macchi 2020-09-25 10:19:33 -04:00
parent 25c07e3fd6
commit 03bb3bbdb4
1 changed files with 2 additions and 1 deletions

View File

@ -2,9 +2,10 @@
no_log: True
copy:
content: "{{lookup ('vars', 'host_container_puppet_tasks_' ~ step, default=[]) | to_nice_json}}"
dest: "/var/lib/container-puppet/container-puppet-tasks{{step}}.json"
dest: "/var/lib/container-puppet/{{ ansible_check_mode | bool | ternary('check-mode/', '') }}container-puppet-tasks{{step}}.json"
force: yes
mode: '0600'
check_mode: no
tags:
- container_config_tasks