mirror of
https://github.com/KevinMidboe/schleppe-ha-project.git
synced 2026-01-28 03:15:39 +00:00
ansible plays for docker, haproxy & varnish
This commit is contained in:
19
ansible/plays/prox-node.yml
Normal file
19
ansible/plays/prox-node.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
- name: Check if vault is reachable for dynamic config
|
||||
hosts: all
|
||||
connection: local
|
||||
gather_facts: false
|
||||
pre_tasks:
|
||||
- name: Check for vault env variables
|
||||
set_fact:
|
||||
has_vault: "{{ lookup('env', 'VAULT_ADDR') and lookup('env', 'VAULT_TOKEN') }}"
|
||||
TELEGRAF_TOKEN: "{{ lookup('env', 'TELEGRAF_TOKEN') }}"
|
||||
roles:
|
||||
- { role: roles/vault-config, when: has_vault }
|
||||
|
||||
- name: Basic setup for proxmox vm clients
|
||||
hosts: proxmox_nodes
|
||||
roles:
|
||||
# - role: roles/prox-telegraf-metrics
|
||||
- role: roles/prox-templates
|
||||
|
||||
Reference in New Issue
Block a user