1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_weechat.git synced 2024-08-16 13:09:48 +02:00

create directorys for weechat config

This commit is contained in:
L3D 2020-03-11 20:31:00 +01:00 committed by L3D
parent 0a6a6833bd
commit 12ff59487b
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
4 changed files with 24 additions and 3 deletions

View file

@ -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 }}"

View file

@ -0,0 +1,3 @@
---
- include_tasks: configure_directorys.yml
when: configure_weechat | bool

View file

@ -20,7 +20,6 @@
state: present state: present
update_cache: yes update_cache: yes
- name: install recomended weechat packages - name: install recomended weechat packages
become: true become: true
apt: apt:

View file

@ -9,8 +9,8 @@
- include_tasks: "install-{{ ansible_os_family|lower }}.yml" - include_tasks: "install-{{ ansible_os_family|lower }}.yml"
when: weechat.install | bool when: weechat.install | bool
#- include_tasks: plugins.yml - include_tasks: configure_weechat.yml
# when: configure_weechat | bool when: configure_weechat | bool
- include_tasks: setup_autostart.yml - include_tasks: setup_autostart.yml
when: weechat.autostart | bool when: weechat.autostart | bool