diff --git a/ansible/roles/baremetal/tasks/install.yml b/ansible/roles/baremetal/tasks/install.yml index 8b08946b2a..18f2bfd7c6 100644 --- a/ansible/roles/baremetal/tasks/install.yml +++ b/ansible/roles/baremetal/tasks/install.yml @@ -150,7 +150,7 @@ name: "{{ (ubuntu_pkg_removals | join(' ')).split() }}" state: absent become: True - when: ansible_distribution|lower == "ubuntu" + when: ansible_os_family == 'Debian' - name: Remove packages package: diff --git a/releasenotes/notes/bug-1933122-b34311ba73092080.yaml b/releasenotes/notes/bug-1933122-b34311ba73092080.yaml new file mode 100644 index 0000000000..f0555693cf --- /dev/null +++ b/releasenotes/notes/bug-1933122-b34311ba73092080.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixes host bootstrap on Debian not removing the conflicting packages. + It now behaves in accordance with the docs. + `LP#1933122 `__