ansible-galaxy
Verified for current stable LTS
Ansible Galaxy Command: Install Remove Role
An engineer would use the 'ansible-galaxy role install' command when they need to add new roles to their Ansible project for automating tasks, or the 'ansible-galaxy role remove' command to clean up and remove unused roles from their environment. Exact CLI syntax to install_remove_role using Ansible Galaxy.
When to use this: An engineer would use the 'ansible-galaxy role install' command when they need to add new roles to their Ansible project for automating tasks, or the 'ansible-galaxy role remove' command to clean up and remove unused roles from their environment.
Destructive Command Warning
Destructive operation. Confirm the target path and keep a backup before executing.
Command Syntax
ansible-galaxy role <install|remove> <role_name1 role_name2 ...> ansible-galaxy role <install|remove> <role_name1 role_name2 ...> Command Breakdown
ansible-galaxy is the base executable for this command.
FAQ
Purpose: Exact syntax to install_remove_role using Ansible Galaxy.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Ansible Galaxy Command: Search For Role
ansible-galaxy role search <keyword> -v<vvvvv> Ansible Galaxy Command: Get Role Information ansible-galaxy role info <role_name> Ansible Galaxy Command: List Installed Roles Or Collections ansible-galaxy <role|collection> list Ansible Galaxy Command: Install Or Remove Roles ansible-galaxy role <install|remove> <role_name1 role_name2 ...> Ansible Galaxy Command: Create New Role ansible-galaxy role init <role_name>