diff --git a/install.yml b/install.yml index ad3ee6a..f989f33 100644 --- a/install.yml +++ b/install.yml @@ -4,6 +4,9 @@ - hosts: cli:desktop roles: + - role: runit + tags: runit + when: ansible_service_mgr == "runit" - role: fish tags: fish - role: neovim diff --git a/roles/fish/files/fish/cli/config.fish b/roles/fish/files/fish/cli/config.fish index b43a1a0..0af822b 100644 --- a/roles/fish/files/fish/cli/config.fish +++ b/roles/fish/files/fish/cli/config.fish @@ -2,6 +2,7 @@ set -x LANG 'fr_FR.UTF-8' set -x EDITOR 'nvim' set -x VISUAL 'nvim' set -x PAGER 'most' +set -x SVDIR '~/.config/service' set -gx SYSTEMD_PAGER 'less' set -U fish_greeting "" diff --git a/roles/runit/tasks/main.yml b/roles/runit/tasks/main.yml new file mode 100644 index 0000000..7c414a8 --- /dev/null +++ b/roles/runit/tasks/main.yml @@ -0,0 +1,5 @@ +--- +- name: create service dir + file: + path: ~/.config/service + state: directory diff --git a/roles/ssh-agent/tasks/runit.yml b/roles/ssh-agent/tasks/runit.yml new file mode 100644 index 0000000..1e30ed8 --- /dev/null +++ b/roles/ssh-agent/tasks/runit.yml @@ -0,0 +1,10 @@ +--- +- name: create runit service dir + file: + path: ~/.config/service + state: directory + +- name: copy ssh-agent service + copy: + src: + dest: