mirror of
https://github.com/ublue-os/forge.git
synced 2025-07-18 23:55:47 +03:00
feat(ansible): allow for input variable files to configure forge behavior (#13)
This commit is contained in:
parent
7ae5826f4a
commit
cb4d82c7cf
9 changed files with 60 additions and 14 deletions
|
@ -24,3 +24,26 @@
|
|||
cmd: update-ca-trust
|
||||
changed_when: false
|
||||
become: true
|
||||
|
||||
- name: Create default directory for forge content
|
||||
ansible.builtin.file:
|
||||
path: "{{ forge_data_path }}"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
|
||||
- name: Create default configuration variable file
|
||||
ansible.builtin.copy:
|
||||
dest: "{{ forge_data_default_variables_file_path }}"
|
||||
content: |
|
||||
## ublue-os forge configuration variables defaults
|
||||
## For more details got to https://github.com/ublue-os/forge/blob/main/docs/variables.md
|
||||
|
||||
{% for item in __vars_used %}
|
||||
#{{ item | upper }}={{ lookup('ansible.builtin.vars', item) }}
|
||||
{% endfor %}
|
||||
backup: true
|
||||
owner: "{{ ansible_facts.env.USER }}"
|
||||
mode: "0644"
|
||||
vars:
|
||||
__vars_used: "{{ lookup('ansible.builtin.varnames', __regex_search, wantlist=true) }}"
|
||||
__regex_search: ^forge_.+
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue