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
import_tasks: setup.yml
tags:
- never
- setup
- name: check if container template exists
ansible.builtin.stat:
path: "/var/lib/machines/{{ contname }}00"
register: cont
tags:
- always
- name: import setup.yml tasks
import_tasks: setup.yml
when: cont.stat.isdir is not defined
tags:
- always