- name: Deploy step tasks for step 0
  debug:
    msg: Use --start-at-task 'Deploy step tasks for step 0' to resume from this task
  when: "tripleo_minor_update is not defined or tripleo_minor_update != 'true'"
- name: Create /var/lib/container-puppet
  no_log: True
  file: path=/var/lib/container-puppet state=directory setype=svirt_sandbox_file_t selevel=s0 recurse=true
- name: Write container-puppet.py
  no_log: True
  copy: src=docker_puppet_script.yaml dest=/var/lib/container-puppet/container-puppet.py force=yes mode=0600
- name: Write container-puppet.sh
  no_log: True
  copy: src=container_puppet_script.yaml dest=/var/lib/container-puppet/container-puppet.sh force=yes mode=0755

{%- for role in roles %}
- import_tasks: {{role.name}}/deploy_steps_tasks.yaml
  when: tripleo_role_name == '{{role.name}}'
{%- endfor %}
