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