Use variable for gpg fingerprint

Using the fingerprint in the rpm_key module requires Ansible 2.9. Updated meta file to reflect this requirement.
develop^2
Marcus 2020-03-09 02:44:38 +01:00
parent 90167ae771
commit 0b9f100aa5
4 changed files with 4 additions and 2 deletions

View File

@ -16,7 +16,7 @@ galaxy_info:
# - CC-BY
license: GPLv3
min_ansible_version: 2.4
min_ansible_version: 2.9
# If this a Container Enabled role, provide the minimum Ansible Container version.
# min_ansible_container_version:

View File

@ -1,7 +1,7 @@
- name: Add ZeroTier PGP key
apt_key:
url: "{{ zerotier_gpg_url }}"
id: "0x74A5E9C458E1A431F1DA57A71657198823E52A61"
id: "{{ zerotier_gpg_fingerprint }}"
- name: Check if Ubuntu release has dedicated repo
uri:

View File

@ -2,6 +2,7 @@
rpm_key:
state: present
key: "{{ zerotier_gpg_url }}"
fingerprint: "{{ zerotier_gpg_fingerprint }}"
- name: Add ZeroTier repo for RHEL/CentOS
yum_repository:

View File

@ -3,3 +3,4 @@
zerotier_download_base_url: http://download.zerotier.com
zerotier_deb_release_repo: "{{ ansible_facts['distribution_release'] }}"
zerotier_gpg_url: https://download.zerotier.com/contact@zerotier.com.gpg
zerotier_gpg_fingerprint: 74A5E9C458E1A431F1DA57A71657198823E52A61