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 weechat plugins

This commit is contained in:
L3D 2019-07-20 20:04:45 +02:00
parent 4bfd0f2045
commit 0ba64c6f51
Signed by: l3d
GPG key ID: CD08445BFF4313D1
5 changed files with 45 additions and 1 deletions

View file

@ -1,2 +1,8 @@
# role_weechat
Ansible role to install and configure weechat
```txt
WARNING
It is work-in-progress. Be careful!
```

View file

@ -2,5 +2,13 @@
# should we install weechat?
install_weechat: true
# should we configure weechat
configure_weechat: true
weechat_user:
# where is our home direcotory for weechat
weechat_directory: "/home/{{ weechat_user }}/.weechat"
# version check for this role?
submodules_versioncheck: true

17
tasks/directorys.yml Normal file
View file

@ -0,0 +1,17 @@
---
- 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

@ -4,3 +4,6 @@
- include_tasks: "install-{{ ansible_os_version|lower }}.yml"
when: install_weechat | bool
- include_tasks: directorys.yml
when: configure_weechat | bool

View file

@ -1,3 +1,13 @@
---
playbook_version_number: 1025 # should be over ninethousand
# weechat plugin languages
weechat_plugin_languages:
pl: perl
scm: guile
js: javascript
py: python
rb: ruby
lua: lua
# version management
playbook_version_number: 1026 # should be over ninethousand
playbook_version_path: '/etc/ansible-version/role-weechat_chaos-bodensee_github.com.version'