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:
parent
d8e1c4b276
commit
41eea637cc
3 changed files with 27 additions and 16 deletions
|
@ -1,18 +1,15 @@
|
|||
---
|
||||
weechat:
|
||||
# should we install weechat?
|
||||
install_weechat: true
|
||||
|
||||
install: true
|
||||
# should we configure weechat
|
||||
configure_weechat: true
|
||||
|
||||
configure: true
|
||||
# user to install and use weechat
|
||||
weechat_user: "{{ ansible_user_id }}"
|
||||
|
||||
user: "{{ ansible_user_id }}"
|
||||
# where is our home direcotory for weechat
|
||||
weechat_directory: "/home/{{ weechat_user }}/.weechat"
|
||||
|
||||
home_directory: "/home/{{ weechat_user }}/.weechat"
|
||||
# plugins we want
|
||||
weechat_plugins: []
|
||||
plugins: []
|
||||
|
||||
# version check for this role? (true is recomended)
|
||||
submodules_versioncheck: false
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
---
|
||||
- name: combine weechat variables
|
||||
set_fact:
|
||||
weechat: "{{ _weechat | combine(weechat, recursive=True) }}"
|
||||
|
||||
- include_tasks: versioncheck.yml
|
||||
when: submodules_versioncheck|bool
|
||||
|
||||
- include_tasks: "install-{{ ansible_os_family|lower }}.yml"
|
||||
when: install_weechat | bool
|
||||
when: weechat.install | bool
|
||||
|
||||
#- include_tasks: plugins.yml
|
||||
# when: configure_weechat | bool
|
||||
|
|
|
@ -9,5 +9,15 @@ weechat_plugin_languages:
|
|||
lua: lua
|
||||
|
||||
# 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'
|
||||
|
||||
# default values
|
||||
_weechat:
|
||||
install: true
|
||||
configure: true
|
||||
user: "{{ ansible_user_id }}"
|
||||
home_directory: "/home/{{ weechat_user }}/.weechat"
|
||||
plugins: []
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue