Add systemd service setup
This commit is contained in:
parent
e64c4a9879
commit
4aa78f0c48
8 changed files with 79 additions and 1 deletions
25
roles/arch/tasks/systemd.yml
Normal file
25
roles/arch/tasks/systemd.yml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
- name: setup systemd user service folder
|
||||
file:
|
||||
path: "{{ xdg_config_dir }}/systemd/user"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
|
||||
- name: add ssh-agent service
|
||||
template:
|
||||
src: "ssh-agent.j2"
|
||||
dest: "{{ xdg_config_dir }}/systemd/user/ssh-agent.service"
|
||||
mode: "0644"
|
||||
notify: restart user ssh-agent
|
||||
|
||||
- name: copy tmux service
|
||||
template:
|
||||
src: "tmux.j2"
|
||||
dest: "{{ xdg_config_dir }}/systemd/user/tmux.service"
|
||||
mode: "0644"
|
||||
|
||||
- name: copy tmux startup script
|
||||
copy:
|
||||
src: "tmux_start"
|
||||
dest: "{{ ansible_env.HOME }}/.local/bin/tmux_start"
|
||||
mode: "0740"
|
||||
force: false
|
||||
Loading…
Add table
Add a link
Reference in a new issue