diff --git a/tasks/configure_plugins.yml b/tasks/configure_plugins.yml new file mode 100644 index 0000000..977a932 --- /dev/null +++ b/tasks/configure_plugins.yml @@ -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 }}' diff --git a/tasks/configure_weechat.yml b/tasks/configure_weechat.yml index c56a7db..2705587 100644 --- a/tasks/configure_weechat.yml +++ b/tasks/configure_weechat.yml @@ -1,3 +1,4 @@ --- - include_tasks: configure_directorys.yml - when: weechat.configure | bool + +- include_tasks: configure_plugins.yml