Commit 1161165c authored by Daniel Buøy-Vehn's avatar Daniel Buøy-Vehn

Dev

parent c7da42dd
......@@ -2,21 +2,22 @@
- hosts: all
become: no
gather_facts: no
connection: local
vars:
os_auth: "{{ openstack_instance.os_auth }}"
os_host_network: "{{ openstack_instance.network.network_name }}"
tasks:
- name: RUN ALL COMMANDS AGAINST LOCALHOST
block:
# - name: FETCH HOSTNAME FROM SERVICE
# uri:
# url: "{{ naming_service_url }}"
# method: 'POST'
# register: hostname
# - name: DEBUG
# debug:
# msg: "{{ hostname }}"
- name: FETCH HOSTNAME FROM SERVICE
uri:
url: "{{ naming_service_url }}"
method: 'POST'
register: hostname
tags: hostname
- name: DEBUG
debug:
msg: "{{ hostname }}"
tags: hostname
- name: "CREATE MACHINE IN OPENSTACK [ {{ os_host_name }} ]"
os_server:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment