diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-02-03 23:43:31 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-02-04 00:09:07 +0100 |
| commit | 540fbf7ab0b61605deae9e64d51f2c903480ce95 (patch) | |
| tree | 35fc161359317c02a4e150b3aea13a01123980ab /roles/mako | |
| parent | 61d0ea9cb67c77bbcb587e3deebb40d511894c17 (diff) | |
Add the mako user configurations via ansible
Diffstat (limited to 'roles/mako')
| -rw-r--r-- | roles/mako/tasks/main.yml | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/roles/mako/tasks/main.yml b/roles/mako/tasks/main.yml index 3303969f..97b4447a 100644 --- a/roles/mako/tasks/main.yml +++ b/roles/mako/tasks/main.yml @@ -7,12 +7,15 @@ - "mako" state: "present" -- name: "Create system config directory" +- name: "Create config directories" become: true ansible.builtin.file: - path: "/etc/xdg/mako" + path: "{{ item }}" state: "directory" mode: "0755" + loop: + - "/etc/xdg/mako" + - "{{ ansible_facts['env']['HOME'] }}/.config/mako" - name: "Configure system defaults" become: true @@ -20,3 +23,14 @@ src: "mako/config.j2" dest: "/etc/xdg/mako/config" mode: "0644" + +- name: "Configure user defaults" + ansible.builtin.blockinfile: + path: "{{ ansible_facts['env']['HOME'] }}/.config/mako/config" + state: "present" + prepend_newline: true + append_newline: true + marker: "# ==== {mark} ANSIBLE MAKO CONFIG" + block: | + # System defaults + include=/etc/xdg/mako/config |
