From 5cece2c0214d06fd6e2f172a3ddf9f026d62a509 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 9 Sep 2019 00:32:27 +0200 Subject: some more cloud-install fixes --- roles/cloud/post-install/tasks/hetzner_postinst.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 roles/cloud/post-install/tasks/hetzner_postinst.yml (limited to 'roles/cloud/post-install/tasks/hetzner_postinst.yml') diff --git a/roles/cloud/post-install/tasks/hetzner_postinst.yml b/roles/cloud/post-install/tasks/hetzner_postinst.yml new file mode 100644 index 00000000..546cc5ca --- /dev/null +++ b/roles/cloud/post-install/tasks/hetzner_postinst.yml @@ -0,0 +1,20 @@ +--- +- name: check post-post-install script is present + stat: + path: /post-post-install.sh + register: hetzner_post_post_install + +- name: run post-post-install script + when: hetzner_post_post_install.stat.exists + command: /post-post-install.sh + +- name: remove installimage artifacts + loop: + - /installimage.conf + - /installimage.debug + - /post-install + - /post-post-install.sh + - /target + file: + path: "{{ item }}" + state: absent -- cgit v1.2.3