
8 Jul
2015
8 Jul
'15
12:28 p.m.
On 08/07/15 22:23, Andrew Spiers wrote:
A configuration management system should abstract this!
package {'vim': ensure => installed }
But the package names aren't necessarily the same on different operating systems. If you want it abstracted, it's easy enough to code that and include it everywhere you need to ensure a particular application is installed, with the specific details as required by particular environments. I already gave you an example for the simple case where the package names are the same: - name: Install vim action: "{{ ansible_pkg_mgr }} name=vim state=present" Hope that helps, Andrew