Florian Ruynat
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
4 deletions
-
roles/bootstrap-os/tasks/bootstrap-centos.yml
|
@ -32,11 +32,12 @@ |
|
|
- name: Enable Oracle Linux repo |
|
|
- name: Enable Oracle Linux repo |
|
|
ini_file: |
|
|
ini_file: |
|
|
dest: "/etc/yum.repos.d/oracle-linux-ol{{ ansible_distribution_major_version }}.repo" |
|
|
dest: "/etc/yum.repos.d/oracle-linux-ol{{ ansible_distribution_major_version }}.repo" |
|
|
section: "{{ item }}" |
|
|
|
|
|
option: enabled |
|
|
|
|
|
value: "1" |
|
|
|
|
|
|
|
|
section: "ol{{ ansible_distribution_major_version }}_addons" |
|
|
|
|
|
option: "{{ item.option }}" |
|
|
|
|
|
value: "{{ item.value }}" |
|
|
with_items: |
|
|
with_items: |
|
|
- "ol{{ ansible_distribution_major_version }}_addons" |
|
|
|
|
|
|
|
|
- { option: "enabled", value: "1" } |
|
|
|
|
|
- { option: "baseurl", value: "http://yum.oracle.com/repo/OracleLinux/OL{{ ansible_distribution_major_version }}/addons/x86_64/" } |
|
|
when: |
|
|
when: |
|
|
- '"Oracle" in os_release.stdout' |
|
|
- '"Oracle" in os_release.stdout' |
|
|
- (ansible_distribution_version | float) >= 7.6 |
|
|
- (ansible_distribution_version | float) >= 7.6 |
|
|