Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

infrastructure needs to support different OSes #133

Open
atarkowska opened this issue Oct 2, 2016 · 2 comments
Open

infrastructure needs to support different OSes #133

atarkowska opened this issue Oct 2, 2016 · 2 comments

Comments

@atarkowska
Copy link
Member

atarkowska commented Oct 2, 2016

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
Copy link
Member

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
Copy link
Member

manics commented Oct 3, 2016

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants