File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 55 repo_dir : /etc/yum.repos.d/
66# default_user: ansible
77 install_os_packages : true
8+ configure_epel_repo : true
9+ configure_public_yum_repo : true
10+
811 common_packages :
912 - screen
1013 - facter
Original file line number Diff line number Diff line change 1818
1919 - name : Install EPEL Repo
2020 yum : name={{ epel_rpm }} state=installed
21+ when : configure_epel_repo
2122 tags :
2223 - epelrepo
2324
2425 - name : Get newest repo-file for OL6 (public-yum)
2526 get_url : dest={{ repo_dir}}/{{ ol6_repo_file }} url=http://public-yum.oracle.com/{{ ol6_repo_file }} backup=yes
26- # when: ansible_lsb.id == 'OracleServer' and ansible_lsb.major_release|int == 6
27+ when : configure_public_yum_repo # and ansible_lsb.id == 'OracleServer' and ansible_lsb.major_release|int == 6
2728 tags :
2829 - ol6repo
2930
You can’t perform that action at this time.
0 commit comments