You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In earlier versions of ansible I tried very hard to ensure my hosts were processed in a specific order
But in recent versions my hosts get processed in some unordered fashion. I understood this might happen if ansible were processing hosts in groups. But I am using "serial: 1" to ensure the hosts are processed 1 at a time.
How can I ensure that my hosts get processed in sequence?
This is how I WAS ensuring sequence. I would run my playbook using deploy_to_verify (for example as my targets. The idea was that the sequence would be built based upon how the groups are defined)
# -----# This section defines all the# deployment machines we have# If you change the shortnames here - be sure to update the two lists in group_vars/all/global.yml# -----[change]
abc-wpchange1.abc.prod user=change1 env_short_name=change
abc-wpchange2.abc.prod user=change2 env_short_name=change
[content]
abc-wpcontent1.abc.prod user=content1 env_short_name=content
[verify]
abc-wpverify1.abc.prod user=change1 env_short_name=verify
abc-wpverify2.abc.prod user=change1 env_short_name=verify
[preview]
abc-wppreview1.abc.prod user=change1 env_short_name=preview
[big_dance]
abc-wpbdance1.abc.prod user=promusr env_short_name=big_dance ansible_become='yes'[production]; abc-wpweb01.abc.prod user=promusr env_short_name=production ansible_become='yes'; abc-wpweb02.abc.prod user=promusr env_short_name=production ansible_become='yes'
abc-wpweb03.abc.prod user=promusr env_short_name=production ansible_become='yes'# -----# These groups define the # deployment sequence# -----[deploy_to_change:children]
change
[deploy_to_content:children]
deploy_to_change
content
[deploy_to_verify:children]
deploy_to_content
verify
[deploy_to_preview:children]
deploy_to_verify
preview
[deploy_to_big_dance:children]
deploy_to_preview
big_dance
[deploy_to_production:children]
deploy_to_big_dance
production
The text was updated successfully, but these errors were encountered:
In earlier versions of ansible I tried very hard to ensure my hosts were processed in a specific order
But in recent versions my hosts get processed in some unordered fashion. I understood this might happen if ansible were processing hosts in groups. But I am using "serial: 1" to ensure the hosts are processed 1 at a time.
How can I ensure that my hosts get processed in sequence?
This is how I WAS ensuring sequence. I would run my playbook using deploy_to_verify (for example as my targets. The idea was that the sequence would be built based upon how the groups are defined)
The text was updated successfully, but these errors were encountered: