Skip specific tags
Skip tasks with the specified tags
ansible-playbook -i inventory playbook.yml --skip-tags cleanup
More ansible commands
-
ansible-playbook -i inventory playbook.yml --check --diffSimulate execution without making changes
-
ansible all -i inventory -m pingCheck connectivity to all hosts in inventory
-
ansible all -i inventory -m shell -a 'uptime'Run a one-liner shell command on all hosts
-
ansible all -i inventory -m copy -a 'src=./file dest=/tmp/file'Copy a file to all hosts
-
ansible <host> -i inventory -m setup | jq '._ansible_facts'Collect all Ansible facts (OS, CPU, network) from a host