Skip to content

Commit 75574f4

Browse files
authored
Merge pull request #10 from Oefenweb/make-use-of-other-keyring
Make use of other keyring
2 parents 2df5064 + a023f50 commit 75574f4

File tree

4 files changed

+28
-7
lines changed

4 files changed

+28
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
matrix:
4646
include:
4747
- distro: debian10
48+
ansible-version: '>=9, <10'
4849
- distro: debian11
4950
- distro: debian12
5051
- distro: ubuntu1804

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Set up [Insync](https://www.insynchq.com) in Debian-like systems.
99

1010
* `software-properties-common` (will be installed)
1111
* `dirmngr` (will be installed)
12+
* `apt-transport-https` (will be installed)
13+
1214
* `apt-utils` (will be installed)
1315
* `procps` (will be installed)
1416

tasks/repository.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,37 @@
11
# tasks file
22
---
3-
- name: repository | dependencies
3+
- name: repository | install dependencies (pre)
44
ansible.builtin.apt:
55
name: "{{ insync_dependencies_pre }}"
66
state: "{{ apt_install_state | default('latest') }}"
77
update_cache: true
88
cache_valid_time: "{{ apt_update_cache_valid_time | default(3600) }}"
99
tags:
10-
- insync-repository-dependencies
10+
- insync-repository-install-dependencies
1111

12-
- name: repository | add public key
12+
- name: repository | (keyrings) directory | create
13+
ansible.builtin.file:
14+
path: "{{ insync_keyring_dst | dirname }}"
15+
state: directory
16+
owner: root
17+
group: root
18+
mode: 0755
19+
tags:
20+
- insync-repository-keyrings-directory-create
21+
22+
- name: repository | (keyring) file | download
1323
ansible.builtin.apt_key:
14-
id: A684470CACCAF35C
24+
id: "{{ insync_keyring_id }}"
1525
keyserver: "{{ apt_key_keyserver | default('keyserver.ubuntu.com') }}"
26+
keyring: "{{ insync_keyring_dst }}"
1627
state: present
1728
tags:
18-
- insync-repository-public-key
29+
- insync-repository-keyring-file-download
1930

2031
- name: repository | add
2132
ansible.builtin.apt_repository:
2233
repo: "{{ item.type }} {{ item.url }} {{ item.component }}"
23-
state: present
34+
state: "{{ item.state | default('present') }}"
2435
update_cache: true
2536
mode: 0644
2637
with_items: "{{ insync_repositories }}"

vars/main.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
# vars file
22
---
3+
insync_keyring_id: A684470CACCAF35C
4+
insync_keyring_dst: /usr/share/keyrings/insync.gpg
35
insync_repositories:
6+
- type: "deb [signed-by={{ insync_keyring_dst }}]"
7+
url: "http://apt.insync.io/{{ ansible_distribution | lower }} {{ ansible_distribution_release }}"
8+
component: 'non-free contrib'
9+
# TODO: Remove in next major release
410
- type: deb
511
url: "http://apt.insync.io/{{ ansible_distribution | lower }} {{ ansible_distribution_release }}"
612
component: 'non-free contrib'
13+
state: absent
714

815
insync_dependencies_pre:
916
- software-properties-common
1017
- dirmngr
11-
- gpg-agent
18+
- apt-transport-https
1219
- apt-utils
1320
- procps
1421

0 commit comments

Comments
 (0)