Skip to content

Commit

Permalink
Add back VMware Photon OS 5.0 online repo photon.repo (#463)
Browse files Browse the repository at this point in the history
Signed-off-by: Qi Zhang <[email protected]>
  • Loading branch information
keirazhang authored May 11, 2023
1 parent 761be8a commit 71ebf81
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions linux/utils/add_official_online_repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@

- name: "Set the fact of VMware Photon OS {{ guest_os_ansible_distribution_major_ver }} online repositories"
ansible.builtin.set_fact:
photon_online_repos: ["photon-release", "photon-updates"]
photon_online_repos: ["photon", "photon-release", "photon-updates"]
when: guest_os_ansible_distribution_major_ver | int >= 4

- name: "Enable VMware Photon OS online repositories"
Expand All @@ -200,15 +200,6 @@
option_value: 1
with_items: "{{ photon_online_repos }}"

- name: "Disable VMware Photon OS online repository - photon.repo"
include_tasks: ../../common/update_ini_style_file.yml
vars:
file_path: "/etc/yum.repos.d/photon.repo"
section_name: "photon"
option_name: "enabled"
option_value: 0
when: guest_os_ansible_distribution_major_ver | int == 5

- name: "Update baseurl to repositories on https://packages.vmware.com/photon"
block:
- name: "Update repo's baseurl"
Expand Down

0 comments on commit 71ebf81

Please sign in to comment.