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

27 lines
565 B
YAML
Raw Normal View History

2020-03-11 10:42:48 +01:00
---
- name: install tmux to launch weechat
become: true
package:
name: tmux
state: present
when: weechat.install | bool
- name: copy systemd service for weechat
become: true
2020-03-11 20:42:00 +01:00
template:
src: templates/weechat.service
2020-03-11 10:42:48 +01:00
dest: /etc/systemd/system/weechat.service
owner: root
group: root
mode: '0644'
2020-03-11 20:42:00 +01:00
notify: systemctl restart weechat.service
2020-03-11 10:42:48 +01:00
2020-03-11 20:42:00 +01:00
- name: enable weechat.service
2020-03-11 10:42:48 +01:00
become: true
systemd:
2020-03-11 20:42:00 +01:00
enabled: true
2020-03-11 10:42:48 +01:00
state: started
name: weechat.service
daemon_reload: yes
2020-03-11 20:42:00 +01:00
notify: systemctl restart weechat.service