ome / infrastructure

A repository containing scripts for managing infrastructure
BSD 2-Clause "Simplified" License
20 stars 19 forks source link

infrastructure needs to support different OSes #133

Open atarkowska opened 8 years ago

atarkowska commented 8 years ago

At the moment this repo only support CentOS7, what about Ubuntu and http://docs.ansible.com/ansible/apt_module.html? How this will be organized to support the same tasks for different OS? Do we need extra level of hierarchy?

joshmoore commented 8 years ago

Probably not more hierarchy. I would assume we use the when: clause to perform certain actions only on given platforms (though 2.0 features like https://docs.ansible.com/ansible/package_module.html will help as well)

manics commented 8 years ago

You could split role/xxx/{tasks,vars,...}/main.yml and use - include: "{{ ansible_os_family }}.yml