diff options
Diffstat (limited to 'roles/cloud/post-install/tasks/hetzner_postinst.yml')
-rw-r--r-- | roles/cloud/post-install/tasks/hetzner_postinst.yml | 20 |
1 files changed, 20 insertions, 0 deletions
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 |