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

Update funktionality and remove nonsense

This commit is contained in:
L3D 2019-07-20 23:29:41 +02:00
parent 0c1e80e4cc
commit 0564b7d615
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 7 additions and 20 deletions

View file

@ -5,10 +5,14 @@ install_weechat: true
# should we configure weechat
configure_weechat: true
weechat_user:
# user to install and use weechat
weechat_user: "{{ ansible_user_id }}"
# where is our home direcotory for weechat
weechat_directory: "/home/{{ weechat_user }}/.weechat"
# plugins we want
weechat_plugins: []
# version check for this role?
submodules_versioncheck: true

View file

@ -1,17 +0,0 @@
---
- name: 'create {{ weechat_directory }}'
become: true
become_user: "{{ weechat_user }}"
file:
path: "{{ weechat_directory }}"
state: directory
owner: "{{ weechat_user }}"
group: "{{ weechat_user }}"
- name: create plugin directories
file:
path: "{{ weechat_directory }}/{{ item.value }}/autoload"
state: directory
owner: "{{ weechat_user }}"
group: "{{ weechat_user }}"
with_dict: '{{ weechat_plugin_languages }}'

View file

@ -5,5 +5,5 @@
- include_tasks: "install-{{ ansible_os_family|lower }}.yml"
when: install_weechat | bool
- include_tasks: directorys.yml
when: configure_weechat | bool
#- include_tasks: plugins.yml
# when: configure_weechat | bool