From 32de8c4f85f801581f413e15595b07abe7b66fda Mon Sep 17 00:00:00 2001 From: Fazle Arefin Date: Sat, 19 Oct 2024 20:35:54 +1100 Subject: [PATCH] ansible-galaxy: update page (#14268) * ansible-galaxy: update page * Update pages/common/ansible-galaxy.md Co-authored-by: Wiktor Perskawiec --------- Co-authored-by: Wiktor Perskawiec --- pages/common/ansible-galaxy.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/pages/common/ansible-galaxy.md b/pages/common/ansible-galaxy.md index 31f4b5983e..9be3acbcdc 100644 --- a/pages/common/ansible-galaxy.md +++ b/pages/common/ansible-galaxy.md @@ -1,32 +1,32 @@ # ansible-galaxy -> Create and manage Ansible roles. +> Perform various Ansible Role and Collection related operations. > More information: . -- Install a role: +- List installed roles or collections: -`ansible-galaxy install {{username}}.{{role_name}}` +`ansible-galaxy {{role|collection}} list` -- Remove a role: +- Search for a role with various levels of verbosely (`-v` should be specified at the end): -`ansible-galaxy remove {{username}}.{{role_name}}` +`ansible-galaxy role search {{keyword}} -v{{vvvvv}}` -- List installed roles: +- Install or remove role(s): -`ansible-galaxy list` - -- Search for a given role: - -`ansible-galaxy search {{role_name}}` +`ansible-galaxy role {{install|remove}} {{role_name1 role_name2 ...}}` - Create a new role: -`ansible-galaxy init {{role_name}}` +`ansible-galaxy role init {{role_name}}` -- Get information about a user role: +- Get information about a role: -`ansible-galaxy role info {{username}}.{{role_name}}` +`ansible-galaxy role info {{role_name}}` -- Get information about a collection: +- Install or remove collection(s): -`ansible-galaxy collection info {{username}}.{{collection_name}}` +`ansible-galaxy collection {{install|remove}} {{collection_name1 collection_name2 ...}}` + +- Display help about roles or collections: + +`ansible-galaxy {{role|collection}} {{-h|--help}}`