2019-07-20 19:13:01 +02:00
|
|
|
---
|
2023-03-01 21:54:56 +01:00
|
|
|
- name: Update apt cache
|
|
|
|
become: true
|
|
|
|
ansible.builtin.apt:
|
|
|
|
cache_valid_time: 3600
|
|
|
|
update_cache: true
|
|
|
|
when:
|
|
|
|
- ansible_pkg_mgr == "apt"
|
|
|
|
|
2023-03-01 21:27:09 +01:00
|
|
|
- name: Install apt-transport-https
|
2020-11-10 13:41:40 +01:00
|
|
|
become: true
|
2021-05-27 14:14:13 +02:00
|
|
|
ansible.builtin.apt:
|
2023-10-30 00:21:01 +01:00
|
|
|
name: "{{ item }}"
|
|
|
|
state: 'present'
|
|
|
|
loop:
|
|
|
|
- 'apt-transport-https'
|
|
|
|
- 'gpg'
|
2020-11-10 13:41:40 +01:00
|
|
|
|
2019-07-20 19:13:01 +02:00
|
|
|
- name: Add weechat repository gpg-key
|
|
|
|
become: true
|
2021-05-27 14:14:13 +02:00
|
|
|
ansible.builtin.apt_key:
|
2020-03-11 10:07:41 +01:00
|
|
|
keyserver: 'keys.openpgp.org'
|
2021-05-27 16:18:04 +02:00
|
|
|
id: "{{ weechat__gpg_id }}"
|
2023-10-30 00:21:01 +01:00
|
|
|
state: 'present'
|
|
|
|
|
|
|
|
- name: Create /usr/share/keyrings directory
|
|
|
|
become: true
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: '/usr/share/keyrings'
|
|
|
|
state: 'directory'
|
|
|
|
owner: 'root'
|
|
|
|
group: 'root'
|
|
|
|
mode: '0755'
|
|
|
|
|
|
|
|
- name: Import WeeChat GPG key
|
|
|
|
become: true
|
2023-10-30 01:59:23 +01:00
|
|
|
ansible.builtin.apt_key:
|
|
|
|
keyserver: "hkps://keys.openpgp.org"
|
|
|
|
id: "{{ weechat__gpg_id }}"
|
|
|
|
keyring: '/usr/share/keyrings/weechat-archive-keyring.gpg'
|
|
|
|
state: 'present'
|
2019-07-20 19:13:01 +02:00
|
|
|
|
2023-03-01 21:27:09 +01:00
|
|
|
- name: Add weechat repo
|
2019-07-20 19:13:01 +02:00
|
|
|
become: true
|
2021-05-27 14:14:13 +02:00
|
|
|
ansible.builtin.apt_repository:
|
2023-10-30 00:21:01 +01:00
|
|
|
repo: "deb [signed-by=/usr/share/keyrings/weechat-archive-keyring.gpg] {{ weechat__debian_weechat_repo }}"
|
|
|
|
state: 'present'
|
2020-11-10 17:30:41 +01:00
|
|
|
update_cache: true
|
2019-07-20 19:13:01 +02:00
|
|
|
|
2023-03-01 21:27:09 +01:00
|
|
|
- name: Add weechat repo-src
|
2020-03-11 10:07:41 +01:00
|
|
|
become: true
|
2021-05-27 14:14:13 +02:00
|
|
|
ansible.builtin.apt_repository:
|
2023-10-30 00:21:01 +01:00
|
|
|
repo: "deb-src [signed-by=/usr/share/keyrings/weechat-archive-keyring.gpg] {{ weechat__debian_weechat_repo }}"
|
|
|
|
state: 'present'
|
2020-11-10 17:30:41 +01:00
|
|
|
update_cache: true
|
2020-03-11 10:07:41 +01:00
|
|
|
|
2023-03-01 21:27:09 +01:00
|
|
|
- name: Install recomended weechat packages
|
2019-07-20 19:13:01 +02:00
|
|
|
become: true
|
2021-05-27 14:14:13 +02:00
|
|
|
ansible.builtin.apt:
|
2023-10-30 00:21:01 +01:00
|
|
|
name: "{{ item }}"
|
|
|
|
state: 'present'
|
|
|
|
loop:
|
|
|
|
- 'weechat-curses'
|
|
|
|
- 'weechat-plugins'
|
|
|
|
- 'weechat-python'
|
|
|
|
- 'weechat-perl'
|
|
|
|
- 'weechat-lua'
|
|
|
|
- 'weechat-ruby'
|
|
|
|
- 'weechat-doc'
|