summaryrefslogtreecommitdiff
path: root/common/cloud-install.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-04-23 01:24:38 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-04-23 01:24:38 +0200
commit17077868e615fa7115abdb03a5af4662ab0a3679 (patch)
tree22cb752792c3410bcfe8ce856b9746cad1ccf8d3 /common/cloud-install.yml
parentremove spreadspace k8s-test cluster (diff)
refactor all install roles ans playbooks to work with new variable install_hostname
Diffstat (limited to 'common/cloud-install.yml')
-rw-r--r--common/cloud-install.yml10
1 files changed, 5 insertions, 5 deletions
diff --git a/common/cloud-install.yml b/common/cloud-install.yml
index e80bfed0..57ebc9e6 100644
--- a/common/cloud-install.yml
+++ b/common/cloud-install.yml
@@ -1,12 +1,12 @@
---
- name: basic installation
- hosts: "{{ hostname }}"
+ hosts: "{{ install_hostname }}"
gather_facts: no
roles:
- role: cloud/install
- name: wait for newly installed machine to start up
- hosts: "{{ hostname }}"
+ hosts: "{{ install_hostname }}"
gather_facts: no
tasks:
## TODO: find a better way to fetch host key of new VMs
@@ -22,17 +22,17 @@
ansible_ssh_extra_args: ""
- name: run post install roles
- hosts: "{{ hostname }}"
+ hosts: "{{ install_hostname }}"
pre_tasks:
- name: make sure to update cached facts
setup:
roles:
- role: cloud/post-install
-- import_playbook: "../{{ hostenv }}/{{ hostname }}.yml"
+- import_playbook: "../{{ install_environment }}/{{ hostvars[install_hostname].install_playbook | default(install_hostname) }}.yml"
- name: reboot and wait for machine come back
- hosts: "{{ hostname }}"
+ hosts: "{{ install_hostname }}"
gather_facts: no
roles:
- role: reboot-and-wait