1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-22 23:12:32 +01:00

test ssh-agent runit

This commit is contained in:
eoli3n 2020-12-17 19:52:50 +01:00
parent 9bb72d64a2
commit e27f491c76
4 changed files with 17 additions and 2 deletions

@ -0,0 +1,3 @@
#!/bin/bash
ssh-agent -D -a

@ -1,5 +1,5 @@
--- ---
- name: enable ssh-agent - name: enable ssh-agent systemd
systemd: systemd:
name: ssh-agent name: ssh-agent
daemon_reload: yes daemon_reload: yes
@ -7,3 +7,10 @@
enabled: yes enabled: yes
scope: user scope: user
when: ansible_virtualization_role == "host" when: ansible_virtualization_role == "host"
- name: enable ssh-agent runit
community.general.runit:
name: ssh-agent
enabled: yes
state: restarted
when: ansible_virtualization_role == "host"

@ -1 +1,6 @@
--- ---
- name: copy ssh-agent service
copy:
src: ssh-agent
dest: ~/.config/service/
directory_mode: yes

@ -3,7 +3,7 @@
copy: copy:
src: ssh-agent.service src: ssh-agent.service
dest: ~/.config/systemd/user/ dest: ~/.config/systemd/user/
notify: enable ssh-agent notify: enable ssh-agent systemd
- name: Configure pam environment - name: Configure pam environment
copy: copy: