1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix default value of gpgcheck in doc (PR #36267)

This commit is contained in:
Jiri Tyr 2018-02-20 12:47:12 +00:00 committed by Sviatoslav Sydorenko
parent 2ce1009c04
commit 000387ac23
2 changed files with 22 additions and 1 deletions

View file

@ -124,7 +124,7 @@ options:
gpgcheck:
required: false
choices: ['yes', 'no']
default: 'no'
default: null
description:
- Tells yum whether or not it should perform a GPG signature check on
packages.

View file

@ -177,3 +177,24 @@
yum_repository:
name: listtest
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"