Skip to content

Commit 1a400db

Browse files
committed
ok: Skipping compute initialization as metadata compute_groups is empty
1 parent a5cbc58 commit 1a400db

File tree

7 files changed

+197
-327
lines changed

7 files changed

+197
-327
lines changed

ansible/extras.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,26 @@
3737
- import_role:
3838
name: persist_hostkeys
3939

40-
- name: Inject ansible-init compute script
40+
# TODO: I'm not convinced this is the right place
41+
- hosts: compute_init:!builder
42+
tags: compute_init
43+
become: yes
44+
name: Export hostvars
45+
tasks:
46+
- include_role:
47+
name: compute_init
48+
tasks_from: export.yml
49+
50+
# TODO: really this should only run during build
51+
# but handy not to for debugging
52+
- name: Install compute_init script
4153
hosts: compute_init
4254
tags: compute_init
4355
become: yes
4456
tasks:
45-
- import_role:
57+
- include_role:
4658
name: compute_init
59+
tasks_from: install.yml
4760

4861
- name: Install k9s
4962
become: yes

0 commit comments

Comments
 (0)