diff --git a/service-provider-setup/deploy-frontend.yml b/service-provider-setup/deploy-frontend.yml index c481ee8..721a743 100644 --- a/service-provider-setup/deploy-frontend.yml +++ b/service-provider-setup/deploy-frontend.yml @@ -36,3 +36,8 @@ - name: Start the deployer ui command: laconic-so deployment --dir webapp-ui start + + - name: Create .out file + file: + path: "{{ ansible_env.HOME }}/.out" + state: touch diff --git a/service-provider-setup/service-provider-setup.yml b/service-provider-setup/service-provider-setup.yml index 27abf2a..68cd29e 100644 --- a/service-provider-setup/service-provider-setup.yml +++ b/service-provider-setup/service-provider-setup.yml @@ -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-system.yml - import_playbook: setup-k8s.yml