From 540fbf7ab0b61605deae9e64d51f2c903480ce95 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Tue, 3 Feb 2026 23:43:31 +0100 Subject: Add the mako user configurations via ansible --- roles/mako/tasks/main.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'roles') 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 -- cgit v1.2.3