While working with my home lab with actual hardware I found the existing conditions, which decide, if a particular task is executed or not, problematic, in particular for the incus part. There the condition for a good number of tasks is install_deb.changed or install_rpm.changed.
In my tests, the installation of the .deb package was already successful in a previous run, but some of the later incus command based tasks failed. In the consecutive runs, these steps have been skipped, since the .deb package was already installed and therefore the condition was not met.
For the ansible playbook to become more reliable and "self healing", these tasks need to be rewritten in an idempotent way.
While working with my home lab with actual hardware I found the existing conditions, which decide, if a particular task is executed or not, problematic, in particular for the incus part. There the condition for a good number of tasks is
install_deb.changed or install_rpm.changed.In my tests, the installation of the
.debpackage was already successful in a previous run, but some of the laterincuscommand based tasks failed. In the consecutive runs, these steps have been skipped, since the.debpackage was already installed and therefore the condition was not met.For the ansible playbook to become more reliable and "self healing", these tasks need to be rewritten in an idempotent way.