diff --git a/tasks/configure_directorys.yml b/tasks/configure_directorys.yml new file mode 100644 index 0000000..d3b424e --- /dev/null +++ b/tasks/configure_directorys.yml @@ -0,0 +1,19 @@ +--- +- name: create weechat directory + become: true + become_user: "{{ weechat.user }}" + file: + path: "{{ weechat.home_directory }}" + state: directory + owner: "{{ weechat.user }}" + mode: "0750" + +- name: create weechat plugins directory + become: true + become_user: "{{ weechat.user }}" + file: + path: "{{ weechat.home_directory }}/{{ item.value }}/autoload" + state: directory + owner: "{{ weechat.user }}" + mode: "0750" + with_dict: "{{ weechat_plugin_languages }}" diff --git a/tasks/configure_weechat.yml b/tasks/configure_weechat.yml new file mode 100644 index 0000000..a7905af --- /dev/null +++ b/tasks/configure_weechat.yml @@ -0,0 +1,3 @@ +--- +- include_tasks: configure_directorys.yml + when: configure_weechat | bool diff --git a/tasks/install-debian.yml b/tasks/install-debian.yml index 7be5ced..d03592e 100644 --- a/tasks/install-debian.yml +++ b/tasks/install-debian.yml @@ -20,7 +20,6 @@ state: present update_cache: yes - - name: install recomended weechat packages become: true apt: diff --git a/tasks/main.yml b/tasks/main.yml index 8588fc6..c2fa9ae 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -9,8 +9,8 @@ - include_tasks: "install-{{ ansible_os_family|lower }}.yml" when: weechat.install | bool -#- include_tasks: plugins.yml -# when: configure_weechat | bool +- include_tasks: configure_weechat.yml + when: configure_weechat | bool - include_tasks: setup_autostart.yml when: weechat.autostart | bool