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 config syntax

This commit is contained in:
L3D 2020-03-11 09:55:08 +01:00 committed by L3D
parent d8e1c4b276
commit 41eea637cc
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
3 changed files with 27 additions and 16 deletions

View file

@ -1,18 +1,15 @@
--- ---
# should we install weechat? weechat:
install_weechat: true # should we install weechat?
install: true
# should we configure weechat # should we configure weechat
configure_weechat: true configure: true
# user to install and use weechat
# user to install and use weechat user: "{{ ansible_user_id }}"
weechat_user: "{{ ansible_user_id }}" # where is our home direcotory for weechat
home_directory: "/home/{{ weechat_user }}/.weechat"
# where is our home direcotory for weechat # plugins we want
weechat_directory: "/home/{{ weechat_user }}/.weechat" plugins: []
# plugins we want
weechat_plugins: []
# version check for this role? (true is recomended) # version check for this role? (true is recomended)
submodules_versioncheck: false submodules_versioncheck: false

View file

@ -1,9 +1,13 @@
--- ---
- name: combine weechat variables
set_fact:
weechat: "{{ _weechat | combine(weechat, recursive=True) }}"
- include_tasks: versioncheck.yml - include_tasks: versioncheck.yml
when: submodules_versioncheck|bool when: submodules_versioncheck|bool
- include_tasks: "install-{{ ansible_os_family|lower }}.yml" - include_tasks: "install-{{ ansible_os_family|lower }}.yml"
when: install_weechat | bool when: weechat.install | bool
#- include_tasks: plugins.yml #- include_tasks: plugins.yml
# when: configure_weechat | bool # when: configure_weechat | bool

View file

@ -9,5 +9,15 @@ weechat_plugin_languages:
lua: lua lua: lua
# version management # version management
playbook_version_number: 2048 # should be over ninethousand playbook_version_number: 2049 # should be over ninethousand
playbook_version_path: 'role-weechat_roles-ansible_github.com.version' playbook_version_path: 'role-weechat_roles-ansible_github.com.version'
# default values
_weechat:
install: true
configure: true
user: "{{ ansible_user_id }}"
home_directory: "/home/{{ weechat_user }}/.weechat"
plugins: []