diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-01-25 22:04:02 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-01-25 22:04:02 +0100 |
| commit | 8cf32ee8b4b8d28ec9ab1b75c476291a4e7c555d (patch) | |
| tree | c20d2bd35313c7d6223b8e3aab11cf3082d7e558 /roles/elephant/tasks | |
| parent | 9485de7945672b2ab833add32dba1530147d3973 (diff) | |
Add the role to install elephant (walker dep)
Diffstat (limited to 'roles/elephant/tasks')
| -rw-r--r-- | roles/elephant/tasks/main.yml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/roles/elephant/tasks/main.yml b/roles/elephant/tasks/main.yml new file mode 100644 index 00000000..a25f92fe --- /dev/null +++ b/roles/elephant/tasks/main.yml @@ -0,0 +1,38 @@ +--- +- name: "Ensure elephant (and providers) are installed" + become: true + become_user: "aur_builder" + kewlfft.aur.aur: + name: "{{ item }}" + state: "present" + use: "yay" + loop: "{{ elephant_packages }}" + +- name: "Create systemd user service" + become: true + ansible.builtin.copy: + src: "elephant.service" + dest: "/usr/lib/systemd/user/elephant.service" + mode: "0644" + notify: + - "Reload systemd" + - "Restart elephant" + +- name: "Configure elephant defaults" + become: true + ansible.builtin.copy: + src: "elephant/{{ item }}" + dest: "/etc/xdg/elephant/{{ item }}" + mode: "0644" + loop: + - "elephant.toml" + - "archlinuxpkgs.toml" + - "calc.toml" + - "clipboard.toml" + - "desktopapplications.toml" + - "files.toml" + - "providerlist.toml" + - "runner.toml" + - "windows.toml" + notify: + - "Restart elephant" |
