ansible playbooks for retailor.io infrastructure

This commit is contained in:
2025-03-03 19:33:36 +01:00
committed by KevinMidboe
commit 92cb10ba27
139 changed files with 33603 additions and 0 deletions

12
roles/env/tasks/main.yml vendored Normal file
View File

@@ -0,0 +1,12 @@
---
- name: Read .env file
ansible.builtin.slurp:
src: "../.env"
delegate_to: localhost
register: env_file
- name: Parse .env file
ansible.builtin.set_fact:
env_vars: "{{ dict(env_file['content'] | b64decode | split('\n') | select('search', '=') | map('split', '=', 1) | list) }}"