Ensure when use_oracle_public_repo is set to false the public Oracle Linux yum repos are not set (#7228)
This commit is contained in:
parent
973628fc1b
commit
b70d986bfa
1 changed files with 2 additions and 0 deletions
|
@ -51,6 +51,7 @@
|
||||||
- { option: "enabled", value: "1" }
|
- { option: "enabled", value: "1" }
|
||||||
- { option: "baseurl", value: "http://yum.oracle.com/repo/OracleLinux/OL{{ ansible_distribution_major_version }}/addons/x86_64/" }
|
- { option: "baseurl", value: "http://yum.oracle.com/repo/OracleLinux/OL{{ ansible_distribution_major_version }}/addons/x86_64/" }
|
||||||
when:
|
when:
|
||||||
|
- use_oracle_public_repo|default(true)
|
||||||
- '"Oracle" in os_release.stdout'
|
- '"Oracle" in os_release.stdout'
|
||||||
- (ansible_distribution_version | float) >= 7.6
|
- (ansible_distribution_version | float) >= 7.6
|
||||||
|
|
||||||
|
@ -59,6 +60,7 @@
|
||||||
name: "oracle-epel-release-el{{ ansible_distribution_major_version }}"
|
name: "oracle-epel-release-el{{ ansible_distribution_major_version }}"
|
||||||
state: present
|
state: present
|
||||||
when:
|
when:
|
||||||
|
- use_oracle_public_repo|default(true)
|
||||||
- '"Oracle" in os_release.stdout'
|
- '"Oracle" in os_release.stdout'
|
||||||
- (ansible_distribution_version | float) >= 7.6
|
- (ansible_distribution_version | float) >= 7.6
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue