update
This commit is contained in:
parent
860c329dcb
commit
cc9350cd6d
3 changed files with 19 additions and 5 deletions
9
ansible/devpod.yml
Normal file
9
ansible/devpod.yml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
- hosts: localhost
|
||||
connection: local
|
||||
become: true
|
||||
vars:
|
||||
DEVPOD: true
|
||||
|
||||
roles:
|
||||
- packages
|
||||
- customize
|
||||
|
|
@ -3,6 +3,7 @@
|
|||
become: true
|
||||
vars:
|
||||
GITLAB_TOKEN: "{{ lookup('env', 'GITLAB_TOKEN') }}"
|
||||
DEVPOD: false
|
||||
# vars_prompt:
|
||||
|
||||
roles:
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue