Spit out environment for now
This commit is contained in:
parent
39272350c3
commit
b04afd85fb
@ -1,7 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Load app config into playbook context
|
|
||||||
include_vars:
|
|
||||||
dir: "{{ app_config_root }}"
|
|
||||||
extensions:
|
|
||||||
- yml
|
|
||||||
- yaml
|
|
@ -1,5 +1,4 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
- name: Setup preparatory facts
|
- name: Setup preparatory facts
|
||||||
set_fact:
|
set_fact:
|
||||||
db_type: "{{ db['type'] }}"
|
db_type: "{{ db['type'] }}"
|
||||||
|
@ -4,21 +4,21 @@
|
|||||||
msg: |
|
msg: |
|
||||||
Module Variables ("vars"):
|
Module Variables ("vars"):
|
||||||
--------------------------------
|
--------------------------------
|
||||||
{{ vars | to_nice_json }}
|
{{ vars }}
|
||||||
|
|
||||||
Environment Variables ("environment"):
|
Environment Variables ("environment"):
|
||||||
--------------------------------
|
--------------------------------
|
||||||
{{ environment | to_nice_json }}
|
{{ environment }}
|
||||||
|
|
||||||
GROUP NAMES Variables ("group_names"):
|
GROUP NAMES Variables ("group_names"):
|
||||||
--------------------------------
|
--------------------------------
|
||||||
{{ group_names | to_nice_json }}
|
{{ group_names }}
|
||||||
|
|
||||||
GROUPS Variables ("groups"):
|
GROUPS Variables ("groups"):
|
||||||
--------------------------------
|
--------------------------------
|
||||||
{{ groups | to_nice_json }}
|
{{ groups }}
|
||||||
|
|
||||||
HOST Variables ("hostvars"):
|
HOST Variables ("hostvars"):
|
||||||
--------------------------------
|
--------------------------------
|
||||||
{{ hostvars | to_nice_json }}
|
{{ hostvars }}
|
||||||
when: debug
|
when: debug
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
---
|
---
|
||||||
- name: Check if internal variables are available for loading
|
- name: Load all deployment variables
|
||||||
stat:
|
include_vars:
|
||||||
path: "{{ app_config_root }}/vars.yml"
|
dir: "{{ item }}"
|
||||||
register: internal_vars
|
extensions:
|
||||||
|
- yml
|
||||||
- name: Load internal variables
|
- yaml
|
||||||
include_vars: "{{ app_config_root }}/vars.yml"
|
with_items:
|
||||||
when: internal_vars.stat.exists
|
- "{{ plugin_config_root }}"
|
||||||
|
- "{{ app_config_root }}"
|
||||||
|
- "{{ app_config_root }}/vault"
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Check if vault variables are available for loading
|
|
||||||
stat:
|
|
||||||
path: "{{ app_config_root }}/vault/"
|
|
||||||
register: vault_dir
|
|
||||||
|
|
||||||
- name: Load vault variables into playbook context
|
|
||||||
include_vars:
|
|
||||||
dir: "{{ app_config_root }}/vault/"
|
|
||||||
extensions:
|
|
||||||
- yml
|
|
||||||
- yaml
|
|
||||||
when: vault_dir.stat.exists
|
|
@ -2,6 +2,5 @@
|
|||||||
- hosts: all
|
- hosts: all
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
tasks:
|
tasks:
|
||||||
- name: TODO
|
- name: Include debug tasks
|
||||||
debug:
|
include: ./lib/debug.yml
|
||||||
msg: "TODO: implement post-delete"
|
|
||||||
|
@ -2,26 +2,15 @@
|
|||||||
- hosts: all
|
- hosts: all
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
tasks:
|
tasks:
|
||||||
- name: Include config tasks
|
|
||||||
include: ./lib/config.yml
|
|
||||||
|
|
||||||
- name: Include debug tasks
|
- name: Include debug tasks
|
||||||
include: ./lib/debug.yml
|
include: ./lib/debug.yml
|
||||||
|
# - name: Include vars tasks
|
||||||
- name: Include vars tasks
|
# include: ./lib/vars.yml
|
||||||
include: ./lib/vars.yml
|
# - name: Include http tasks
|
||||||
|
# include: ./lib/http.yml
|
||||||
- name: Include vault tasks
|
# - name: Include certs tasks
|
||||||
include: ./lib/vault.yml
|
# include: ./lib/certs.yml
|
||||||
|
# - name: Include proxy tasks
|
||||||
- name: Include http tasks
|
# include: ./lib/proxy.yml
|
||||||
include: ./lib/http.yml
|
# - name: Include https tasks
|
||||||
|
# include: ./lib/https.yml
|
||||||
- name: Include certs tasks
|
|
||||||
include: ./lib/certs.yml
|
|
||||||
|
|
||||||
- name: Include proxy tasks
|
|
||||||
include: ./lib/proxy.yml
|
|
||||||
|
|
||||||
- name: Include https tasks
|
|
||||||
include: ./lib/https.yml
|
|
||||||
|
@ -2,20 +2,11 @@
|
|||||||
- hosts: all
|
- hosts: all
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
tasks:
|
tasks:
|
||||||
- name: Include config tasks
|
|
||||||
include: ./lib/config.yml
|
|
||||||
|
|
||||||
- name: Include debug tasks
|
- name: Include debug tasks
|
||||||
include: ./lib/debug.yml
|
include: ./lib/debug.yml
|
||||||
|
# - name: Include vars tasks
|
||||||
- name: Include vars tasks
|
# include: ./lib/vars.yml
|
||||||
include: ./lib/vars.yml
|
# - name: Include domain tasks
|
||||||
|
# include: ./lib/domain.yml
|
||||||
- name: Include vault tasks
|
# - name: Include env tasks
|
||||||
include: ./lib/vault.yml
|
# include: ./lib/env.yml
|
||||||
|
|
||||||
- name: Include domain tasks
|
|
||||||
include: ./lib/domain.yml
|
|
||||||
|
|
||||||
- name: Include env tasks
|
|
||||||
include: ./lib/env.yml
|
|
||||||
|
Reference in New Issue
Block a user