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

[Ch6: Roles] Role creation #227

Closed
thescouser89 opened this issue Mar 28, 2020 · 2 comments
Closed

[Ch6: Roles] Role creation #227

thescouser89 opened this issue Mar 28, 2020 · 2 comments

Comments

@thescouser89
Copy link

@thescouser89 thescouser89 commented Mar 28, 2020

Hi,

On page 129 on the pdf, it says that to scaffold a role, this command is run:

ansible-galaxy init role_name

On F31, I need to invoke it as such:

ansible-galaxy role init role_name
@geerlingguy
Copy link
Owner

@geerlingguy geerlingguy commented May 13, 2020

This still works the same in Ansible 2.9.x and below, but you're correct in that Ansible devel / 2.10 and later will require the role subcommand to work with roles explicitly.

I'm planning on reworking parts of Chapter 6 more extensively later when I deal with collections (see #202), but for now I've gone ahead and set all the previously un-subcommand-ed commands to have role (e.g. ansible-galaxy install is now ansible-galaxy role install when dealing with only roles).

Thanks for filing the issue and I'll credit you with this fix in version 1.23 of the book!

@thescouser89
Copy link
Author

@thescouser89 thescouser89 commented May 13, 2020

Thank you! :)

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