Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - hosts: {{primary_role_name}}:DEPLOY_TARGET_HOST
- name: Server roles based deployments
- gather_facts: no
- any_errors_fatal: yes
- tasks:
- {%- for role in roles %}
- - include: {{role.name}}/role-aware-deployments.yaml
- vars:
- force: false
- when: tripleo_role_name == '{{role.name}}'
- with_items: "{{ '{{' }} {{role.name}}_pre_deployments|default([]) {{ '}}' }}"
- {%- endfor %}
- tags:
- - overcloud
- - pre_deploy_steps
- - hosts: {{primary_role_name}}:DEPLOY_TARGET_HOST
- name: Generic server deployments
- gather_facts: no
- any_errors_fatal: yes
- tasks:
- {%- for role in roles %}
- - include: deployments.yaml
- vars:
- force: false
- with_items: "{{ '{{' }} lookup('vars', tripleo_role_name + '_pre_deployments')|default([]) {{ '}}' }}"
- {%- endfor %}
- tags:
- - overcloud
- - pre_deploy_steps
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement