Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 845 Bytes

README.md

File metadata and controls

43 lines (27 loc) · 845 Bytes

Running

  • Install missing collections
$ ansible-galaxy collection install ansible.posix
  • Run the playbook
ansible-playbook --ask-become-pass --check --tags onetime \
  --inventory inventory.ini archall.yml

Force handlers

Handlers run at the end of the play. They do not run if the play itself fails. Handlers can be forced to run even if the play fails to run by using --force-handlers when invoking ansible-playbook.

If we want the handlers to run immediately after a task, we can use the flush_handlers meta task to force it to run.

Deliberately failing

add - fail: task

Testing

Linting

  • Ansible lint using ansible-lint archall.yml
  • Add in-line exceptions using # noqa: <warning>

Unit testing

  • TBD

TODO:

  • DNS over TLS in systemd-resolved
  • Networkmanager uses systemd-resolved