toansible: Add ssh-agent installation

This commit is contained in:
flyingscorpio@clevo 2022-02-21 14:35:49 +01:00
parent 3bcedc138d
commit 2b616af8fd
4 changed files with 14 additions and 8 deletions

View file

@ -10,14 +10,6 @@ sudoers:
- run:
- sudo chmod 600 /etc/sudoers.d/setup-cockpit
ssh-agent:
- symlink:
- dotfiles/systemd/ssh-agent.service
- ~/.config/systemd/user/ssh-agent.service
- run:
- systemctl --user is-enabled ssh-agent >/dev/null || systemctl --user enable ssh-agent;
systemctl --user start ssh-agent
pacman.conf:
- run:
command: sudo cp /etc/pacman.conf /etc/pacman.conf.backup

View file

@ -4,3 +4,4 @@
roles:
- base
- neovim
- ssh-agent

View file

@ -0,0 +1,13 @@
---
- name: Copy ssh-agent.service
copy:
src: ssh-agent.service
dest: ~/.config/systemd/user/ssh-agent.service
- name: Enable ssh-agent service
systemd:
name: ssh-agent
enabled: true
state: started
scope: user