Browse Source

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
changes/03/754403/1
Emilien Macchi 10 months ago
parent
commit
03bb3bbdb4
  1. 3
      common/host-container-puppet-tasks.yaml

3
common/host-container-puppet-tasks.yaml

@ -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

Loading…
Cancel
Save