Run 'setup' only on setup.
This commit is contained in:
parent
9e2a6a70e3
commit
3d3f0093ff
1 changed files with 9 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue