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:
parent
9bb72d64a2
commit
e27f491c76
3
roles/ssh-agent/files/ssh-agent/run
Executable file
3
roles/ssh-agent/files/ssh-agent/run
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
ssh-agent -D -a
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
- name: enable ssh-agent
|
||||
- name: enable ssh-agent systemd
|
||||
systemd:
|
||||
name: ssh-agent
|
||||
daemon_reload: yes
|
||||
@ -7,3 +7,10 @@
|
||||
enabled: yes
|
||||
scope: user
|
||||
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:
|
||||
src: ssh-agent.service
|
||||
dest: ~/.config/systemd/user/
|
||||
notify: enable ssh-agent
|
||||
notify: enable ssh-agent systemd
|
||||
|
||||
- name: Configure pam environment
|
||||
copy:
|
||||
|
Loading…
Reference in New Issue
Block a user