Use tripleo linear when not using tripleo free
In order to handle percentage failures for tripleo classes we will need
to use a custom strategy to handle the failures. Let's explicitly define
our expected strategies in the playbook so it'll default to linear (the
ansible default) on the host when ansible is invoked but our deployment
tasks will be run as we want them.
Depends-On: https://review.opendev.org/#/c/724766/
Change-Id: Ifaddeccfbb82e03815311ee0b76eb2e2eae282a7
(cherry picked from commit 029722ef1f
)
This commit is contained in:
parent
9bc53dfdd9
commit
afc7e2c28a
|
@ -33,6 +33,7 @@
|
|||
- always
|
||||
|
||||
- hosts: "{{ deploy_target_host }}"
|
||||
strategy: tripleo_linear
|
||||
name: Ensure /var/lib/config-data context
|
||||
become: true
|
||||
gather_facts: false
|
||||
|
|
|
@ -444,6 +444,7 @@ outputs:
|
|||
deploy_target_host: "DEPLOY_TARGET_HOST"
|
||||
|
||||
- hosts: DEPLOY_TARGET_HOST
|
||||
strategy: tripleo_linear
|
||||
name: Manage SELinux
|
||||
gather_facts: "{% raw %}{{ gather_facts | default(false) }}{% endraw %}"
|
||||
any_errors_fatal: yes
|
||||
|
@ -455,6 +456,7 @@ outputs:
|
|||
state: SELINUX_MODE
|
||||
|
||||
- hosts: all
|
||||
strategy: tripleo_linear
|
||||
name: Generate /etc/hosts
|
||||
gather_facts: "{% raw %}{{ gather_facts | default(false) }}{% endraw %}"
|
||||
any_errors_fatal: yes
|
||||
|
@ -470,6 +472,7 @@ outputs:
|
|||
{% endraw %}
|
||||
|
||||
- hosts: DEPLOY_TARGET_HOST
|
||||
strategy: tripleo_linear
|
||||
name: Common roles for TripleO servers
|
||||
gather_facts: "{% raw %}{{ gather_facts | default(false) }}{% endraw %}"
|
||||
any_errors_fatal: yes
|
||||
|
@ -822,6 +825,7 @@ outputs:
|
|||
{% endraw %}
|
||||
|
||||
- hosts: DEPLOY_SOURCE_HOST
|
||||
strategy: tripleo_linear
|
||||
name: External deployment Post Deploy tasks
|
||||
gather_facts: "{% raw %}{{ gather_facts | default(false) }}{% endraw %}"
|
||||
any_errors_fatal: yes
|
||||
|
|
Loading…
Reference in New Issue