2 ms·
One unanswered question for me is how to manager packages on different systems. Apache for example has a different name on RPM vs apt based systems, or you migh
by boothead 13y ago
One unanswered question for me is how to manager packages on different systems. Apache for example has a different name on RPM vs apt based systems, or you might have a different command to go the install (arch vs ubuntu for example).
Can ansible do this? Can I easily migrate a playbook from using say apt-get to pacman?
- elbac 13y agoTypically your playbooks are more specific then 'do something vague' for example, install apache. You would say specifically, using 'apt' install the package 'httpd'. To see the package managers Ansible supports OOTB look at: http://www.ansibleworks.com/docs/modules.html#packaging http://www.ansibleworks.com/docs/modules.html#packaging For examples on how this can be abstracted to handle multiple platforms see: http://www.ansibleworks.com/docs/bestpractices.html/#operating-system-and-distribution-variance http://www.ansibleworks.com/docs/bestpractices.html/#operati...