1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_weechat.git synced 2024-08-16 13:09:48 +02:00

install weechat on debian/ubuntu

This commit is contained in:
L3D 2019-07-20 19:13:01 +02:00
parent 60e640ee72
commit 448f22c1a7
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 27 additions and 0 deletions

View file

@ -1,3 +1,6 @@
---
# should we install weechat?
install_weechat: true
# version check for this role?
submodules_versioncheck: true

22
tasks/install-debian.yml Normal file
View file

@ -0,0 +1,22 @@
---
- name: Add weechat repository gpg-key
become: true
apt_key:
keyserver: 'ha.pool.sks-keyservers.net'
id: '11E9DE8848F2B65222AA75B8D1820DB22A11534E'
state: present
- name: add weechat repo
become: true
apt_repository:
repo: "deb https://weechat.org/{{ ansible_distribution|lower }} {{ ansible_distribution_release }} main"
state: present
update_cache: yes
- name: install weechat and plugins
become: true
apt:
name:
- weechat-curses
- weechat-plugins
state: present

View file

@ -2,3 +2,5 @@
- include_tasks: versioncheck.yml
when: submodules_versioncheck|bool
- include_tasks: "install-{{ ansible_os_version|lower }}.yml"
when: install_weechat | bool