Commit 9325ff43 authored by Joanne Hugé's avatar Joanne Hugé

playbook/bbu: fix broken apt on ORS SSD images

parent 0687357d
...@@ -27,6 +27,22 @@ ...@@ -27,6 +27,22 @@
systemd: name=init-sdr enabled=no systemd: name=init-sdr enabled=no
when: init_sdr_service.stat.exists when: init_sdr_service.stat.exists
- name: Fix apt
shell: 'DEBIAN_FRONTEND=noninteractive apt install -y'
ignore_errors: yes
register: apt_install
- name: Get SSD disk path
shell: "debconf-show grub-efi-amd64 | grep install_devices_disks_changed | awk '{ print $NF }'"
ignore_errors: yes
register: ssd_disk
when: apt_install.rc != 0
- name: Fix grub install
shell: "echo 'grub-efi grub-efi/install_devices string {{ ssd_disk.stdout }}' | debconf-set-selections && DEBIAN_FRONTEND=noninteractive apt install -y"
when: ssd_disk.rc == 0 and apt_install.rc != 0
ignore_errors: yes
# Configure systemd-networkd # Configure systemd-networkd
- name: Configure /etc/systemd/network/dhcp.network - name: Configure /etc/systemd/network/dhcp.network
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment