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:
parent
0c1e80e4cc
commit
0564b7d615
3 changed files with 7 additions and 20 deletions
|
@ -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
|
||||
|
|
|
@ -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 }}'
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue