Use simpler file structure
This commit is contained in:
parent
8ea9414418
commit
d5ca1ac81d
74 changed files with 398 additions and 477 deletions
25
tasks/systemd.yml
Normal file
25
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: 'templates/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: 'templates/tmux.j2'
|
||||
dest: '{{ xdg_config_dir }}/systemd/user/tmux.service'
|
||||
mode: '0644'
|
||||
|
||||
- name: copy tmux startup script
|
||||
copy:
|
||||
src: 'files/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