You can have multiple plays within one playbook.

On Thursday, February 3, 2022 at 4:08:29 AM UTC-5 [email protected] wrote:

> Hi everyone,
>
> I'd like do a following scenario:
>
> - commit a change in Puppet repo which has config for servers
>    - before this commit gets pulled in by Puppet daemons on servers I want 
> to force
> - run the Ansible playbook
>    - task1: stop Puppet daemons on all servers at once (parallel task)
>    - task2: serially run an an Ansible task community.general.puppet on 
> each server
>
> I already do rolling updates with "serial: 1" in all the updates. 
> Considering on the format of the playbooks and documentation it seems to me 
> I'd have to make two separate playbooks, one with parallel execution and 
> one with serial? Or am I wrong and it can be done within one playbook? 
> Maybe it's possible to work around the problem with include_tasks or 
> import_tasks?
>
> Martin
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/792c2410-5427-4e62-b71d-1e1b5c8fac47n%40googlegroups.com.

Reply via email to