mirror of
https://github.com/roles-ansible/ansible_role_weechat.git
synced 2024-08-16 13:09:48 +02:00
install weechat plugins (if defined)
This commit is contained in:
parent
15184c039c
commit
1562f8bc02
2 changed files with 15 additions and 1 deletions
13
tasks/configure_plugins.yml
Normal file
13
tasks/configure_plugins.yml
Normal file
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
- name: download weechat plugins
|
||||
get_url:
|
||||
url: 'https://weechat.org/files/scripts/{{ item }}'
|
||||
dest: "{{ weechat.home_directory }}/{{ weechat_plugin_languages[item.split('.',1)[-1]] }}/{{ item }}"
|
||||
with_items: '{{ weechat.plugins }}'
|
||||
|
||||
- name: symlinking plugins to autoload
|
||||
file:
|
||||
src: "{{ weechat.home_directory }}/{{ weechat_plugin_languages[item.split('.',1)[-1]] }}/{{ item }}"
|
||||
dest: "{{ weechat.home_directory }}/{{ weechat_plugin_languages[item.split('.',1)[-1]] }}/autoload/{{ item }}"
|
||||
state: link
|
||||
with_items: '{{ weechat.plugins }}'
|
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
- include_tasks: configure_directorys.yml
|
||||
when: weechat.configure | bool
|
||||
|
||||
- include_tasks: configure_plugins.yml
|
||||
|
|
Loading…
Reference in a new issue