summaryrefslogtreecommitdiff
path: root/roles/cloud/post-install/tasks/hetzner_postinst.yml
blob: 546cc5ca705b6f774ab7ff25ba151526224111e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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