mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
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
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue