Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

use check_mode instead of always_run #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
- name: Register SELinux state
tags: util
become: true
always_run: true
check_mode: no
ignore_errors: true
failed_when: false
changed_when: false
Expand Down Expand Up @@ -107,7 +107,7 @@
when:
- ansible_os_family == 'RedHat'
- ansible_local.util.epel.enable is undefined or ansible_local.util.epel.enable != true
always_run: true
check_mode: no
register: util_registered_installed_repos
command: yum repolist

Expand Down