From b85080da471b13ca1bdcc4ac39de5c242e5c31a0 Mon Sep 17 00:00:00 2001 From: aminnairi <18418459+aminnairi@users.noreply.github.com> Date: Fri, 5 Jan 2024 20:35:37 +0100 Subject: [PATCH] now setting up oh my fish for the root user --- ansible/roles/fish/tasks/main.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/ansible/roles/fish/tasks/main.yml b/ansible/roles/fish/tasks/main.yml index eac6ab1..c9ef7fb 100644 --- a/ansible/roles/fish/tasks/main.yml +++ b/ansible/roles/fish/tasks/main.yml @@ -37,14 +37,30 @@ depth: 1 single_branch: true update: true -- name: Clone Agnoster theme +- name: Clone Oh My Fish for the root user + become: true + git: + repo: https://github.com/oh-my-fish/oh-my-fish + dest: /root/.local/share/omf + depth: 1 + single_branch: true + update: true +- name: Clone Agnoster theme for the unprivileged user git: repo: https://github.com/oh-my-fish/theme-agnoster dest: /$HOME/.local/share/omf/themes/agnoster depth: 1 single_branch: true update: true -- name: Setup OMF +- name: Clone Agnoster theme for the root user + become: true + git: + repo: https://github.com/oh-my-fish/theme-agnoster + dest: /root/.local/share/omf/themes/agnoster + depth: 1 + single_branch: true + update: true +- name: Setup OMF for the unprivileged user synchronize: delete: true src: omf