Skip to content

Commit ba4b627

Browse files
authored
Merge pull request #1989 from knabben/photon-5-add-alternatives
ova: fix Photon 5 distro-sync failure due to alternatives/chkconfig conflict
2 parents fede562 + b2c0637 commit ba4b627

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

images/capi/ansible/roles/providers/tasks/vmware-photon.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
# limitations under the License.
1414

1515
---
16+
- name: Replace chkconfig with alternatives to satisfy iptables dependency
17+
ansible.builtin.command: tdnf install -y alternatives --allowerasing
18+
register: install_alternatives
19+
changed_when: '"Nothing to do" not in install_alternatives.stderr'
20+
1621
- name: Install cloud-init and tools for VMware Photon OS
1722
ansible.builtin.command: tdnf install {{ packages }} -y
1823
vars:

images/capi/ansible/roles/setup/tasks/photon.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@
3636
changed_when: '"Nothing to do" not in distro.stderr'
3737
when: not disable_public_repos|default(false)|bool
3838

39+
- name: Replace chkconfig with alternatives to satisfy iptables dependency
40+
ansible.builtin.command: tdnf install -y alternatives --allowerasing
41+
register: install_alternatives
42+
changed_when: '"Nothing to do" not in install_alternatives.stderr'
43+
3944
- name: Perform a tdnf distro-sync
4045
ansible.builtin.command: tdnf distro-sync -y --refresh
4146
register: distro

0 commit comments

Comments
 (0)