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:
parent
91d5f6f0f7
commit
15184c039c
7 changed files with 18 additions and 7 deletions
7
handlers/main.yml
Normal file
7
handlers/main.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: systemctl restart weechat.service
|
||||
become: true
|
||||
systemd:
|
||||
state: restarted
|
||||
name: weechat.service
|
||||
daemon_reload: yes
|
|
@ -1,3 +1,3 @@
|
|||
---
|
||||
- include_tasks: configure_directorys.yml
|
||||
when: configure_weechat | bool
|
||||
when: weechat.configure | bool
|
||||
|
|
|
@ -29,6 +29,6 @@
|
|||
- weechat-python
|
||||
- weechat-perl
|
||||
- weechat-lua
|
||||
- weechaz-ruby
|
||||
- weechat-ruby
|
||||
- weechat-doc
|
||||
state: present
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue