This commit is contained in:
DeveloperDurp 2025-04-06 20:32:46 -05:00
parent 860c329dcb
commit cc9350cd6d
3 changed files with 19 additions and 5 deletions

9
ansible/devpod.yml Normal file
View file

@ -0,0 +1,9 @@
- hosts: localhost
connection: local
become: true
vars:
DEVPOD: true
roles:
- packages
- customize

View file

@ -3,6 +3,7 @@
become: true
vars:
GITLAB_TOKEN: "{{ lookup('env', 'GITLAB_TOKEN') }}"
DEVPOD: false
# vars_prompt:
roles:

View file

@ -1,3 +1,7 @@
- name: Load devpod variables if DEVPOD is true
include_vars: "vars/devpod.yml"
when: DEVPOD | bool
- name: Load a variable file
include_vars: "{{ item }}"
with_first_found:
@ -5,7 +9,7 @@
- "vars/{{ ansible_distribution }}.yml"
- "vars/{{ ansible_os_family }}.yml"
- "vars/defaults.yml"
when: not DEVPOD | bool
- name:
include_tasks: "defaults.yml"