Skip to content

eternaltyro/ansible-playbooks

Repository files navigation

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

About

(Mirror) Ansible playbooks for my workstation - Mirrored from Gitlab

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages