ansible: Default to not checking GPG signatures on distro YUM repos autocluster-1.4
authorMartin Schwenke <martin@meltin.net>
Mon, 16 Dec 2019 02:41:55 +0000 (13:41 +1100)
committerMartin Schwenke <martin@meltin.net>
Mon, 16 Dec 2019 02:41:55 +0000 (13:41 +1100)
The official CentOS 7 boxes not not contain the necessary public keys
so, rather than forcing this to be overridden in configuration, just
default to 'no'.

Signed-off-by: Martin Schwenke <martin@meltin.net>
ansible/node/roles/common/tasks/redhat/packages.yml

index 888ccaeabaa8fbb8ad83a8f29a58742aa7a73c06..3491a820657e60e77f521ab964d988a620c0d4fb 100644 (file)
@@ -30,7 +30,8 @@
     name: "autocluster-{{ repo.name }}"
     description: "{{ repo.name }}"
     baseurl: "{{ repo.baseurl | default(repository_baseurl) }}/{{ repo.path }}"
-    gpgcheck: "{{ repo.gpgcheck | default('yes') }}"
+    # Official CentOS 7 boxes do not contain necessary public keys
+    gpgcheck: "{{ repo.gpgcheck | default('no') }}"
     proxy: _none_
   when: repo.type == "distro"
   with_list: "{{ repositories }}"