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:
parent
4bfd0f2045
commit
0ba64c6f51
5 changed files with 45 additions and 1 deletions
|
@ -1,2 +1,8 @@
|
||||||
# role_weechat
|
# role_weechat
|
||||||
Ansible role to install and configure weechat
|
Ansible role to install and configure weechat
|
||||||
|
|
||||||
|
```txt
|
||||||
|
WARNING
|
||||||
|
|
||||||
|
It is work-in-progress. Be careful!
|
||||||
|
```
|
||||||
|
|
|
@ -2,5 +2,13 @@
|
||||||
# should we install weechat?
|
# should we install weechat?
|
||||||
install_weechat: true
|
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?
|
# version check for this role?
|
||||||
submodules_versioncheck: true
|
submodules_versioncheck: true
|
||||||
|
|
17
tasks/directorys.yml
Normal file
17
tasks/directorys.yml
Normal 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 }}'
|
|
@ -4,3 +4,6 @@
|
||||||
|
|
||||||
- include_tasks: "install-{{ ansible_os_version|lower }}.yml"
|
- include_tasks: "install-{{ ansible_os_version|lower }}.yml"
|
||||||
when: install_weechat | bool
|
when: install_weechat | bool
|
||||||
|
|
||||||
|
- include_tasks: directorys.yml
|
||||||
|
when: configure_weechat | bool
|
||||||
|
|
|
@ -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'
|
playbook_version_path: '/etc/ansible-version/role-weechat_chaos-bodensee_github.com.version'
|
||||||
|
|
Loading…
Reference in a new issue