Install roles from Galaxy
Download the roles listed in requirements.yml to the local roles/ folder
ansible-galaxy install -r requirements.yml -p roles/
More ansible commands
-
ansible-galaxy collection install community.kubernetesInstall an Ansible collection from Galaxy
-
ansible-inventory -i inventory --list | jq 'keys'Show the top-level keys of the parsed inventory: the groups and _meta
-
ansible-playbook playbook.yml -e 'env=prod version=2.0'Pass extra variables at runtime; they override the playbook defaults
-
ansible-playbook playbook.yml -vvvMaximum verbosity: every task, connection and output
-
ansible-playbook playbook.yml --syntax-checkCheck the playbook syntax without running any tasks