Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instalation error fingerprint. #759

Open
arturmon opened this issue Aug 7, 2024 · 3 comments
Open

Instalation error fingerprint. #759

arturmon opened this issue Aug 7, 2024 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@arturmon
Copy link

arturmon commented Aug 7, 2024

Describe the bug

Instalattion error

To reproduce

Steps to reproduce the bug:

  1. I have deployed/run the Ansible NGINX role using the following playbook.yml:
---
- name: Install nginx
  ansible.builtin.include_role:
    name: nginx
  1. I have seen the following error(s) on my terminal output/logs:
{"changed": false, "msg": "The specified fingerprint, '573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62', does not match the key fingerprint '8540A6F18833A80E9C1653A42FD21310B49F6B46'"}

Expected behavior

nginx installation

Your environment

  • Version of the Ansible NGINX role (or specific commit): Ansible Galaxy nginxinc.nginx_core 0.8.0
  • Version of Ansible: ansible-core:2.14.0
  • How is Ansible being managed (CLI/pipeline/Automation Hub/etc...): Gitlab
  • Target deployment platform(s): VM Oracle Linux 8.8

galaxy.yml

collections:
  - name: community.crypto
    version: '2.21.1'

  - name: ansible.posix
    version: '1.4.0'

  - name: community.general
    version: '9.2.0'

  - name: community.docker 
    version: '3.2.1'

  - name: nginxinc.nginx_core
    version: '0.8.0'

Additional context (optional)

https://docs.nginx.com/nginx-agent/installation-upgrade/installation-oss/
the documentation indicates the fingerprint 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62

@alessfg alessfg self-assigned this Aug 7, 2024
@alessfg alessfg added the bug Something isn't working label Aug 7, 2024
@alessfg alessfg added this to the 0.25.0 milestone Aug 7, 2024
@alessfg
Copy link
Collaborator

alessfg commented Aug 7, 2024

Heya! This is technically an issue with the Ansible NGINX core collection and it being outdated. You can easily bypass the issue by installing this role separately and using it instead of the NGINX collection 😄

@arturmon
Copy link
Author

arturmon commented Aug 7, 2024

Heya! This is technically an issue with the Ansible NGINX core collection and it being outdated. You can easily bypass the issue by installing this role separately and using it instead of the NGINX collection 😄

Even if Core is outdated and not supported, this does not change the fact that your fingerprint is incorrect. you have 8540A6F18833A80E9C1653A42FD21310B49F6B46 installed and it should be 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62.
link to repository:

id: 8540A6F18833A80E9C1653A42FD21310B49F6B46

link to documentation:
https://docs.nginx.com/nginx-agent/installation-upgrade/installation-oss/

I don't think changing my role will help me. since the core version includes your nginxinc.nginx role.

@alessfg
Copy link
Collaborator

alessfg commented Aug 8, 2024

The collection includes an outdated version of this role that does not incorporate this PR f0ec588.

The PR you opened would fundamentally revert back this role to the version you are using by using the collection right now. The collection does not pull the latest role release, it has a hardcoded version.

The docs you linked are for the nginx agent, not nginx, but at any rate they use a key that has expired. The key expiration has been updated, but for some reason Ansible does not seem to like the new expiration date. The key id found on this role right now is the actual new key that NGINX will be moving to in the near future.

I am leaving this issue open until the collection is updated, but it is not an issue with this role.

@alessfg alessfg mentioned this issue Aug 8, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

2 participants