Ansible: Difference between revisions
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
=Start where you left off= | =Start where you left off= | ||
ansible-playbook playbook.yml --start-at-task="install packages" | ansible-playbook playbook.yml --start-at-task="install packages" | ||
=adhoc command= | |||
ansible remote.host -u ${USER}_sysadmin -a id |
Revision as of 10:45, 11 March 2021
ansible options
-l SUBSET, --limit SUBSET (further limit selected hosts to an additional pattern) -t TAGS, --tags TAGS (only run plays and tasks tagged with these values) -e EXTRA_VARS, --extra-vars EXTRA_VARS (set additional variables as key=value or YAML/JSON, if filename prepend with @)
dont fail on errors
ignore_errors: yes
Start where you left off
ansible-playbook playbook.yml --start-at-task="install packages"
adhoc command
ansible remote.host -u ${USER}_sysadmin -a id