Run 'setup' only on setup.

This commit is contained in:
Andreas B. Mundt 2022-03-16 17:31:37 +01:00 committed by Andreas B. Mundt
parent 9e2a6a70e3
commit 3d3f0093ff

View file

@ -54,12 +54,15 @@
########### ###########
- name: import setup.yml tasks - name: check if container template exists
import_tasks: setup.yml ansible.builtin.stat:
tags: path: "/var/lib/machines/{{ contname }}00"
- never register: cont
- setup tags:
- always
- name: import setup.yml tasks - name: import setup.yml tasks
import_tasks: setup.yml import_tasks: setup.yml
when: cont.stat.isdir is not defined
tags:
- always