Add base hostname to consul in Playbook
This commit is contained in:
parent
2f65105592
commit
b6a9c80748
@ -55,6 +55,13 @@
|
|||||||
key: ansible_test
|
key: ansible_test
|
||||||
value: Hello from Ansible!
|
value: Hello from Ansible!
|
||||||
|
|
||||||
|
- name: Set hostname
|
||||||
|
consul_kv:
|
||||||
|
host: "{{ inventory_hostname }}"
|
||||||
|
key: global/base_hostname
|
||||||
|
# TODO: propogate this through via Consul and Nomad templates rather than Terraform
|
||||||
|
value: dev.homelab
|
||||||
|
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user