2020-03-11 10:42:48 +01:00
|
|
|
---
|
2023-03-01 21:27:09 +01:00
|
|
|
- name: Install tmux to launch weechat
|
2020-03-11 10:42:48 +01:00
|
|
|
become: true
|
2021-05-27 14:14:13 +02:00
|
|
|
ansible.builtin.package:
|
2020-03-11 10:42:48 +01:00
|
|
|
name: tmux
|
|
|
|
state: present
|
2021-05-27 16:18:04 +02:00
|
|
|
when: weechat__install | bool
|
2020-03-11 10:42:48 +01:00
|
|
|
|
2023-03-01 21:27:09 +01:00
|
|
|
- name: Copy systemd service for weechat
|
2020-03-11 10:42:48 +01:00
|
|
|
become: true
|
2021-05-27 14:14:13 +02:00
|
|
|
ansible.builtin.template:
|
2020-03-11 20:42:00 +01:00
|
|
|
src: templates/weechat.service
|
2020-03-11 10:42:48 +01:00
|
|
|
dest: /etc/systemd/system/weechat.service
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: '0644'
|
2023-03-01 21:27:09 +01:00
|
|
|
notify: Run systemctl restart weechat.service
|
2020-03-11 10:42:48 +01:00
|
|
|
|
2023-03-01 21:27:09 +01:00
|
|
|
- name: Enable weechat.service
|
2020-03-11 10:42:48 +01:00
|
|
|
become: true
|
2021-05-27 14:14:13 +02:00
|
|
|
ansible.builtin.systemd:
|
2020-03-11 20:42:00 +01:00
|
|
|
enabled: true
|
2020-03-11 10:42:48 +01:00
|
|
|
state: started
|
|
|
|
name: weechat.service
|
2020-11-10 17:30:41 +01:00
|
|
|
daemon_reload: true
|
2023-03-01 21:27:09 +01:00
|
|
|
notify: Run systemctl restart weechat.service
|