mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
Load vault variables once in shared play
This commit is contained in:
@@ -1,12 +1,6 @@
|
||||
---
|
||||
- hosts: all
|
||||
become: true
|
||||
|
||||
roles:
|
||||
- dotfiles_common
|
||||
|
||||
- hosts: void
|
||||
become: true
|
||||
pre_tasks:
|
||||
- name: Load local vault variables when available
|
||||
tags: [always]
|
||||
@@ -14,6 +8,12 @@
|
||||
file: "{{ playbook_dir }}/../secrets/vault.yml"
|
||||
when: lookup('ansible.builtin.fileglob', playbook_dir + '/../secrets/vault.yml', errors='ignore') != ''
|
||||
|
||||
roles:
|
||||
- dotfiles_common
|
||||
|
||||
- hosts: void
|
||||
become: true
|
||||
|
||||
roles:
|
||||
- packages_void
|
||||
- services_runit
|
||||
@@ -21,12 +21,6 @@
|
||||
|
||||
- hosts: ubuntu_workstation
|
||||
become: true
|
||||
pre_tasks:
|
||||
- name: Load local vault variables when available
|
||||
tags: [always]
|
||||
ansible.builtin.include_vars:
|
||||
file: "{{ playbook_dir }}/../secrets/vault.yml"
|
||||
when: lookup('ansible.builtin.fileglob', playbook_dir + '/../secrets/vault.yml', errors='ignore') != ''
|
||||
|
||||
roles:
|
||||
- packages_ubuntu
|
||||
|
||||
Reference in New Issue
Block a user