tldr/pages/common/ansible-galaxy.md

25 lines
440 B
Markdown
Raw Normal View History

2017-09-14 03:57:24 +01:00
# ansible-galaxy
2017-09-14 04:01:49 +01:00
> Create and manage Ansible roles.
2019-01-30 11:19:23 +00:00
> Homepage: <https://docs.ansible.com/ansible/latest/cli/ansible-galaxy.html>.
2017-09-14 03:57:24 +01:00
2017-09-14 04:01:49 +01:00
- Install a role:
2017-09-14 03:57:24 +01:00
2017-09-14 05:40:12 +01:00
`ansible-galaxy install {{username.role_name}}`
2017-09-14 03:57:24 +01:00
2017-09-14 04:01:49 +01:00
- Remove a role:
2017-09-14 03:57:24 +01:00
2017-09-14 05:40:12 +01:00
`ansible-galaxy remove {{username.role_name}}`
2017-09-14 03:57:24 +01:00
2017-09-14 04:01:49 +01:00
- List installed roles:
2017-09-14 03:57:24 +01:00
`ansible-galaxy list`
2017-09-14 05:40:12 +01:00
- Search for a given role:
2017-09-14 03:57:24 +01:00
`ansible-galaxy search {{role_name}}`
2017-09-14 04:01:49 +01:00
- Create a new role:
2017-09-14 03:57:24 +01:00
2017-09-14 04:01:49 +01:00
`ansible-galaxy init {{role_name}}`