summaryrefslogtreecommitdiff
path: root/common/cloud-install.yml
diff options
context:
space:
mode:
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