Small improvement to consul kv role
This commit is contained in:
parent
8434c22fd2
commit
ff4e473a89
@ -60,18 +60,14 @@
|
||||
# pointing to 127.0.0.1 and possibly restart Docker and Nomad
|
||||
|
||||
- name: Add values
|
||||
delegate_to: localhost
|
||||
run_once: true
|
||||
block:
|
||||
- name: Install python-consul
|
||||
pip:
|
||||
name: python-consul
|
||||
extra_args: --index-url https://pypi.org/simple
|
||||
|
||||
- name: Add a value to Consul
|
||||
consul_kv:
|
||||
host: "{{ inventory_hostname }}"
|
||||
key: ansible_test
|
||||
value: Hello from Ansible!
|
||||
|
||||
- name: Set hostname
|
||||
consul_kv:
|
||||
host: "{{ inventory_hostname }}"
|
||||
@ -79,9 +75,6 @@
|
||||
# TODO: propogate this through via Consul and Nomad templates rather than Terraform
|
||||
value: dev.homelab
|
||||
|
||||
delegate_to: localhost
|
||||
run_once: true
|
||||
|
||||
- name: Setup Vault cluster
|
||||
hosts: vault_instances
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user