toansible: Add ssh-agent installation
This commit is contained in:
parent
3bcedc138d
commit
2b616af8fd
4 changed files with 14 additions and 8 deletions
|
@ -10,14 +10,6 @@ sudoers:
|
||||||
- run:
|
- run:
|
||||||
- sudo chmod 600 /etc/sudoers.d/setup-cockpit
|
- 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:
|
pacman.conf:
|
||||||
- run:
|
- run:
|
||||||
command: sudo cp /etc/pacman.conf /etc/pacman.conf.backup
|
command: sudo cp /etc/pacman.conf /etc/pacman.conf.backup
|
||||||
|
|
|
@ -4,3 +4,4 @@
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
- neovim
|
- neovim
|
||||||
|
- ssh-agent
|
||||||
|
|
13
roles/ssh-agent/tasks/main.yml
Normal file
13
roles/ssh-agent/tasks/main.yml
Normal 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
|
Loading…
Add table
Reference in a new issue