1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_weechat.git synced 2024-08-16 13:09:48 +02:00
ansible_role_weechat/tasks/setup_autostart.yml
2021-05-27 16:18:04 +02:00

26 lines
615 B
YAML

---
- name: install tmux to launch weechat
become: true
ansible.builtin.package:
name: tmux
state: present
when: weechat__install | bool
- name: copy systemd service for weechat
become: true
ansible.builtin.template:
src: templates/weechat.service
dest: /etc/systemd/system/weechat.service
owner: root
group: root
mode: '0644'
notify: systemctl restart weechat.service
- name: enable weechat.service
become: true
ansible.builtin.systemd:
enabled: true
state: started
name: weechat.service
daemon_reload: true
notify: systemctl restart weechat.service