1
0
Fork 0
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:
L3D 2020-03-11 20:51:00 +01:00 committed by L3D
parent 15184c039c
commit 1562f8bc02
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
2 changed files with 15 additions and 1 deletions

View 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 }}'

View file

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