File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 2424 tags :
2525 - epelrepo
2626
27+ # Do not use the old public-yum.repo on OL7 after January 2019 anymore
28+ # Check for /usr/bin/ol_yum_configure.sh in newer systems
29+ - name : Check for ol_yum_configure.sh
30+ stat :
31+ path : /usr/bin/ol_yum_configure.sh
32+ register : olyumconfigfile
33+ when : configure_public_yum_repo and ansible_distribution == 'OracleLinux'
34+ tags :
35+ - olrepo
36+
37+ # Update public-yum.repo only on old versions of OL7
2738 - name : Get newest repo-file for OL (public-yum)
2839 get_url : dest={{ repo_dir}}/{{ ol_repo_file }} url=http://public-yum.oracle.com/{{ ol_repo_file }} backup=yes
29- when : configure_public_yum_repo and ansible_distribution == 'OracleLinux'
40+ when : not olyumconfigfile.stat.exists | default(false) and configure_public_yum_repo and ansible_distribution == 'OracleLinux'
3041 tags :
31- - ol6repo
42+ - olrepo
3243
3344 - name : Install common packages OL/RHEL
3445 yum : name={{ common_packages }} state=installed
You can’t perform that action at this time.
0 commit comments