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:
parent
60e640ee72
commit
448f22c1a7
3 changed files with 27 additions and 0 deletions
|
@ -1,3 +1,6 @@
|
||||||
---
|
---
|
||||||
|
# should we install weechat?
|
||||||
|
install_weechat: true
|
||||||
|
|
||||||
# version check for this role?
|
# version check for this role?
|
||||||
submodules_versioncheck: true
|
submodules_versioncheck: true
|
||||||
|
|
22
tasks/install-debian.yml
Normal file
22
tasks/install-debian.yml
Normal 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
|
|
@ -2,3 +2,5 @@
|
||||||
- include_tasks: versioncheck.yml
|
- include_tasks: versioncheck.yml
|
||||||
when: submodules_versioncheck|bool
|
when: submodules_versioncheck|bool
|
||||||
|
|
||||||
|
- include_tasks: "install-{{ ansible_os_version|lower }}.yml"
|
||||||
|
when: install_weechat | bool
|
||||||
|
|
Loading…
Reference in a new issue