Hello,
I understand that tasks in a playbook run top down but I don't know if they 
wait for each other. I have a question about how you control multiple 
package installs in a way so that subsequent tasks (that install software) 
will not run until the previous software installation is finished. I’m 
using a combination of yum module and command module to do the software 
installs:

tasks:

  - name: First run yum update -y with yum module

    yum:

      name: "*"

      state: latest

  - name: Only After yum update is done install python3 with a specific 
command

  command: sudo yum -y install python3 python3-pip

  - name: Only After python is installed install the latest version of 
Apache with yum module

  yum:

    name: httpd

    state: latest

Will this work as is or do I need to add “wait_for” or use a "handler" to 
make sure that one install is completed before the next one is started?  Thank 
you for any help 

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a1c1b1a1-7630-48a4-8459-8b08f3e6e63b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to