1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_weechat.git synced 2024-08-16 13:09:48 +02:00

improve autostart and fix some typos

This commit is contained in:
L3D 2020-03-11 20:42:00 +01:00 committed by L3D
parent 91d5f6f0f7
commit 15184c039c
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
7 changed files with 18 additions and 7 deletions

7
handlers/main.yml Normal file
View file

@ -0,0 +1,7 @@
---
- name: systemctl restart weechat.service
become: true
systemd:
state: restarted
name: weechat.service
daemon_reload: yes

View file

@ -1,3 +1,3 @@
---
- include_tasks: configure_directorys.yml
when: configure_weechat | bool
when: weechat.configure | bool

View file

@ -29,6 +29,6 @@
- weechat-python
- weechat-perl
- weechat-lua
- weechaz-ruby
- weechat-ruby
- weechat-doc
state: present

View file

@ -10,7 +10,7 @@
when: weechat.install | bool
- include_tasks: configure_weechat.yml
when: configure_weechat | bool
when: weechat.configure | bool
- include_tasks: setup_autostart.yml
when: weechat.autostart | bool

View file

@ -8,16 +8,19 @@
- name: copy systemd service for weechat
become: true
copy:
src: files/weechat.service
template:
src: templates/weechat.service
dest: /etc/systemd/system/weechat.service
owner: root
group: root
mode: '0644'
notify: systemctl restart weechat.service
- name: start and enable weechat.service
- name: enable weechat.service
become: true
systemd:
enabled: true
state: started
name: weechat.service
daemon_reload: yes
notify: systemctl restart weechat.service

View file

@ -2,6 +2,7 @@
Description=Weechat Chat Client
[Service]
User={{ weechat.user }}
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/tmux -2 new-session -d -s weechat /usr/bin/weechat

View file

@ -9,7 +9,7 @@ weechat_plugin_languages:
lua: lua
# version management
playbook_version_number: 2053 # should be over ninethousand
playbook_version_number: 2054 # should be over ninethousand
playbook_version_path: 'role-weechat_roles-ansible_github.com.version'
# default values