Skip specific tags ansible
Skip tasks with the specified tags
ansible-playbook -i inventory playbook.yml --skip-tags cleanup
more ansible
all 56 commands →
Dry run (check mode)
ansible-playbook -i inventory playbook.yml --check --diff
Ad-hoc ping all hosts
ansible all -i inventory -m ping
Ad-hoc run shell command
ansible all -i inventory -m shell -a 'uptime'
Ad-hoc copy file
ansible all -i inventory -m copy -a 'src=./file dest=/tmp/file'
Gather facts from host
ansible <host> -i inventory -m setup | jq '._ansible_facts'