Ansible: Difference between revisions

From Halfface
Jump to navigation Jump to search
Line 6: Line 6:
=dont fail on errors=
=dont fail on errors=
  ignore_errors: yes
  ignore_errors: yes
=Start where you left off=
ansible-playbook playbook.yml --start-at-task="install packages"

Revision as of 18:12, 24 February 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"