Create file on successful sp setup to handle reruns
This commit is contained in:
parent
18ec7d1121
commit
5b781ec336
@ -36,3 +36,8 @@
|
|||||||
|
|
||||||
- name: Start the deployer ui
|
- name: Start the deployer ui
|
||||||
command: laconic-so deployment --dir webapp-ui start
|
command: laconic-so deployment --dir webapp-ui start
|
||||||
|
|
||||||
|
- name: Create .out file
|
||||||
|
file:
|
||||||
|
path: "{{ ansible_env.HOME }}/.out"
|
||||||
|
state: touch
|
||||||
|
@ -1,3 +1,15 @@
|
|||||||
|
- hosts: "{{ target_host }}"
|
||||||
|
tasks:
|
||||||
|
- name: Check if .out file exists
|
||||||
|
stat:
|
||||||
|
path: "{{ ansible_env.HOME }}/.out"
|
||||||
|
register: out_file
|
||||||
|
|
||||||
|
- name: Exit playbook if .out file exists
|
||||||
|
fail:
|
||||||
|
msg: ".out file exists, exiting playbook."
|
||||||
|
when: out_file.stat.exists
|
||||||
|
|
||||||
- import_playbook: setup-dns.yml
|
- import_playbook: setup-dns.yml
|
||||||
- import_playbook: setup-system.yml
|
- import_playbook: setup-system.yml
|
||||||
- import_playbook: setup-k8s.yml
|
- import_playbook: setup-k8s.yml
|
||||||
|
Loading…
Reference in New Issue
Block a user