I just tried to deploy this one on my Debian 12 machines (Bookworm) with this variables
goaccess_install_method: system
goaccess_systemd: true
And I encounter the following error:
FAILED! => {"changed": false, "msg": "Failed to update apt cache: W:GPG error: https://deb.goaccess.io bookworm InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 97BD1A0133449C3D, E:The repository 'https://deb.goaccess.io bookworm InRelease' is not signed."}
To the job:
TASK [ansible-role-goaccess: Add GoAccess's APT repository to system repository list and update cache.]
On my 3 Debian 12.
The following signatures were invalid: EXPKEYSIG 97BD1A0133449C3D.... See [Github issue](https://github.com/allinurl/goaccess/issues/2321#issuecomment-1128879773) to solve the expired key.
GPG error The following signatures couldn't be verified because the public key is not available.
Please make sure to download the new public key from step 2 above to correct this.
.deb packages in the official repo are available through https as well. You may need to install apt-transport-https.
The key fingerprint is: C03B 4888 7D5E 56B0 4671 5D32 97BD 1A01 3344 9C3D
If I understand:
apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (It's not the problem but it soon will be)
The real problem and the goacess documentation...
apt-key list | grep goaccess -C 2
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
pub rsa3072 2020-05-17 [SC]
C03B 4888 7D5E 56B0 4671 5D32 97BD 1A01 3344 9C3D
uid [ unknown] Gerardo Orellana <goaccess@prosoftcorp.com>
sub rsa3072 2020-05-17 [E]
I suggest if you want to change that:
- name: Add GoAccess's APT signing key.
ansible.builtin.apt_key:
url: "https://deb.goaccess.io/gnugpg.key"
state: present
- name: Add GoAccess's APT repository to system repository list and update cache.
ansible.builtin.apt_repository:
repo: "deb [signed-by=/usr/share/keyrings/goaccess.gpg] https://deb.goaccess.io/ {{ ansible_distribution_release }} main"
filename: goaccess
state: present
update_cache: true
What happened?
Hello
Thank you for this magnificent role.
I just tried to deploy this one on my Debian 12 machines (Bookworm) with this variables
And I encounter the following error:
FAILED! => {"changed": false, "msg": "Failed to update apt cache: W:GPG error: https://deb.goaccess.io bookworm InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 97BD1A0133449C3D, E:The repository 'https://deb.goaccess.io bookworm InRelease' is not signed."}
To the job:
TASK [ansible-role-goaccess: Add GoAccess's APT repository to system repository list and update cache.]
On my 3 Debian 12.However, manual installation gives the same thing but the documentation (https://goaccess.io/download#distro) gives the solution in bash.
If I understand: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (It's not the problem but it soon will be)
The real problem and the goacess documentation...
I suggest if you want to change that:
to this:
tasks file of ansible-role jonaspammer.goaccess
name: Add GoAccess's APT signing key. ansible.builtin.get_url: url: "{{ goaccess_repo_key_url }}" dest: /etc/apt/trusted.gpg.d/goaccess.asc mode: '0644' force: true
name: Add GoAccess's APT repository to system repository list and update cache. ansible.builtin.apt_repository: repo: "deb https://deb.goaccess.io/ {{ ansible_distribution_release }} main" filename: goaccess state: present update_cache: true
And add the default vars
Test OK
Available to talk about it
Playbook
Role Version
2.0.0+1
Environment / Control Node Information
Environment / Managed Node Information