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:
parent
0a6a6833bd
commit
12ff59487b
4 changed files with 24 additions and 3 deletions
19
tasks/configure_directorys.yml
Normal file
19
tasks/configure_directorys.yml
Normal 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 }}"
|
3
tasks/configure_weechat.yml
Normal file
3
tasks/configure_weechat.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
- include_tasks: configure_directorys.yml
|
||||
when: configure_weechat | bool
|
|
@ -20,7 +20,6 @@
|
|||
state: present
|
||||
update_cache: yes
|
||||
|
||||
|
||||
- name: install recomended weechat packages
|
||||
become: true
|
||||
apt:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue