What's the Ansible best practice for doing a typical source compile of
multiple packages?
So, let's say you have three source packages that all require the same
three steps: configure, make, and make install.
The three packages have all have been untar-ed into their own directories:
/var/tmp/pkg1
/var/tmp/pkg2
/var/tmp/pkg3
What's the typical Ansible way to handle it?
- name: build sources
command: chdir=/var/tmp/{{ item }} sudo .configure --prefix=/usr
command: chdir=/var/tmp/{{ item }} sudo make
command: chdir=/var/tmp/{{ item }} sudo make install
with_items:
- pkg1
- pkg2
- pkg3
--
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/e5ee7571-79ca-47d6-9ee3-49eea3d206d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.