-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Ansible request for *Unix* playbooks - a playbook by name rather than named via role_name. #2506
Comments
|
The I'm not saying that's the best option - just explaining how it's currently done and that was put in place a long time ago :-) |
Yep, so the way the This is how I would also setup roles that have multiple functions, but you may not want to necessarily call all of them; (I am aware that I wrote this so I am biased but...), something like this: I do concede, this has a downside where I would like to keep the original roles, as roles, as it is keeps them separate . As well, even if roles are simple and are literally just a task file, if they're expanded in the future to use more role functionality (such as templates, default variables and variable files), we'd have to convert the playbooks back to a role-based process. Personally I think with the rewrite ( #2492 ) , we'll likely see roles use a lot more of this functionality anyway. |
many thanks for responses! |
Please put the name of the software product (and affected platforms if relevant) in the title of this issue
Details:
I've been working on reorganizing the AIX playbooks - and I am going to start looking at the organization of the other Unix playbooks.
Before getting started - I just want to verify that there is some agreement that that a playbook named, e.g., roles/something_todo/tasks/main.yml could also be named something_todo.yml - If the aforementioned main.yml is the only file in the role.
.yml
files that were not named main - here are themain.yml
files:role:
rather thaninclude_tasks:
The text was updated successfully, but these errors were encountered: