Skip to content

Commit

Permalink
move host/image name output to hook
Browse files Browse the repository at this point in the history
  • Loading branch information
sjpb committed Feb 22, 2024
1 parent 8243023 commit 8b52efc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 0 additions & 7 deletions ansible/fatimage.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
# Builder version of site.yml just installing binaries

- hosts: builder
become: no
gather_facts: no
tasks:
- name: Report hostname (= final image name)
command: hostname

- name: Run pre.yml hook
vars:
appliances_environment_root: "{{ lookup('env', 'APPLIANCES_ENVIRONMENT_ROOT') }}"
Expand Down
7 changes: 7 additions & 0 deletions environments/.stackhpc/hooks/pre.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
- hosts: builder
become: no
gather_facts: no
tasks:
- name: Report hostname (= final image name)
command: hostname

- hosts: control:!builder
become: yes
gather_facts: false
Expand Down

0 comments on commit 8b52efc

Please sign in to comment.