We can't assume the executing user is root, so use become. Also uses a block to perform the RedHat-only check. Change-Id: Ibf2da6b8086bc8e34b33f113067a213a33213161 Story: 2001898 Task: 14383
8 lines
149 B
YAML
8 lines
149 B
YAML
---
|
|
- block:
|
|
- include: redhat.yml
|
|
when: yum_use_local_mirror | bool
|
|
|
|
- include: custom_repo.yml
|
|
when: ansible_os_family == 'RedHat'
|