Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stub out how multi-OS support looks #6

Open
kdunn-pivotal opened this issue Sep 7, 2017 · 3 comments
Open

Stub out how multi-OS support looks #6

kdunn-pivotal opened this issue Sep 7, 2017 · 3 comments

Comments

@kdunn-pivotal
Copy link

Again, love what you've done here - curious to see how the switch/case block fans out when using these detection capabilities.

@andreasscherbaum
Copy link
Owner

This certainly needs to be improved when support for more OS types is added.
Right now I check on the top, so I don't have to add checks down the road in the Playbook.

@kdunn-pivotal
Copy link
Author

Yep, seems like the right thing to do at this point. Ideally, the playbook would "key" off of the detected OS type. I'm sure there's an example of this somewhere.... Googling...

https://raymii.org/s/tutorials/Ansible_-_Only_if_on_specific_distribution_or_distribution_version.html

@andreasscherbaum
Copy link
Owner

That's what main.yml is doing. One could spread it out even further, and have different files for AWS and GPC and such, but they are all similar enough that it should be enough to just detect the platform it is running on.

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

No branches or pull requests

2 participants