Add systemd service setup

This commit is contained in:
Sonny Bakker 2020-11-29 17:28:23 +01:00
parent e64c4a9879
commit 4aa78f0c48
8 changed files with 79 additions and 1 deletions

0
roles/arch/tasks/gpg.yml Normal file
View file

View file

@ -28,11 +28,13 @@
# - pacman setup depending on platform (see include section for common options)
# - laptop power saving configuration
- include_tasks: systemd.yml
- include_tasks: gpg.yml # TODO
- include_tasks: git.yml # TODO
- include_tasks: mpv.yml
- include_tasks: mpd.yml # TODO
- include_tasks: nfs.yml # TODO
- include_tasks: postgres.yml # TODO
- include_tasks: syncthing.yml # TODO depending on platform
- include_tasks: git.yml # TODO (identify)
- include_tasks: openvpn.yml # TODO (laptop)
- include_tasks: timer.yml

View 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