Fix default value of gpgcheck in doc (PR #36267)
This commit is contained in:
parent
2ce1009c04
commit
000387ac23
2 changed files with 22 additions and 1 deletions
|
@ -124,7 +124,7 @@ options:
|
||||||
gpgcheck:
|
gpgcheck:
|
||||||
required: false
|
required: false
|
||||||
choices: ['yes', 'no']
|
choices: ['yes', 'no']
|
||||||
default: 'no'
|
default: null
|
||||||
description:
|
description:
|
||||||
- Tells yum whether or not it should perform a GPG signature check on
|
- Tells yum whether or not it should perform a GPG signature check on
|
||||||
packages.
|
packages.
|
||||||
|
|
|
@ -177,3 +177,24 @@
|
||||||
yum_repository:
|
yum_repository:
|
||||||
name: listtest
|
name: listtest
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
|
- name: disable epel (clean up)
|
||||||
|
yum_repository:
|
||||||
|
name: epel
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
- name: add epel
|
||||||
|
yum_repository:
|
||||||
|
name: epel
|
||||||
|
description: EPEL yum repo
|
||||||
|
baseurl: https://download.fedoraproject.org/pub/epel/{{ ansible_distribution_major_version }}/{{ ansible_architecture }}/
|
||||||
|
state: present
|
||||||
|
gpgcheck: no
|
||||||
|
|
||||||
|
- set_fact:
|
||||||
|
repofile: "{{ lookup('file', '/etc/yum.repos.d/epel.repo') }}"
|
||||||
|
|
||||||
|
- name: check for gpgcheck=0
|
||||||
|
assert:
|
||||||
|
that:
|
||||||
|
- "'gpgcheck = 0' in repofile"
|
||||||
|
|
Loading…
Reference in a new issue