From 8cf5d0cffb6230c874a96b6b3095ee5f5e3e02e8 Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Sun, 28 Jun 2020 01:26:44 +0200 Subject: [PATCH] tmux service --- handlers/main.yaml | 5 +++++ tasks/tmux.yaml | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 handlers/main.yaml diff --git a/handlers/main.yaml b/handlers/main.yaml new file mode 100644 index 0000000..4bc7b14 --- /dev/null +++ b/handlers/main.yaml @@ -0,0 +1,5 @@ +--- +- name: systemd daemon-reload + systemd: + daemon_reload: yes + scope: user diff --git a/tasks/tmux.yaml b/tasks/tmux.yaml index f4e7cdb..abf8037 100644 --- a/tasks/tmux.yaml +++ b/tasks/tmux.yaml @@ -5,3 +5,18 @@ src: tmux.conf.j2 dest: ~/.tmux.conf mode: 0755 + +- name: systemd user config directory + file: + path: ~/.config/systemd/user + state: directory +- name: tmux systemd user service unit + template: + src: tmux@.service.j2 + dest: ~/.config/systemd/user/tmux@.service + notify: systemd daemon-reload +- name: tmux systemd user service unit + template: + src: tmux@.service.j2 + dest: ~/.config/systemd/user/tmux@.service + notify: systemd daemon-reload