commit a9b41f23704f4b73bf099b91091c4e2c91698b68 Author: Cédric Jeanneret Date: Thu Oct 8 12:57:32 2020 +0200 Ensure we have the ansible "interfaces" fact It might happen this role isn't called without any fact gathering, for instance running plain "ansible -m include_role -a role=tripleo_podman". This small addition ensures we actually collect the needed things before usage. Change-Id: I2de4088bb3e9f3e049632f7d593a6ca8a2ac00de diff --git a/tripleo_ansible/roles/tripleo_podman/tasks/tripleo_podman_install.yml b/tripleo_ansible/roles/tripleo_podman/tasks/tripleo_podman_install.yml index 490bc8a..02bd444 100644 --- a/tripleo_ansible/roles/tripleo_podman/tasks/tripleo_podman_install.yml +++ b/tripleo_ansible/roles/tripleo_podman/tasks/tripleo_podman_install.yml @@ -26,6 +26,15 @@ name: "{{ tripleo_podman_packages }}" state: latest + - name: Ensure we get the ansible_interfaces fact + when: + - ansible_interfaces is undefined + setup: + gather_subset: + - '!all' + - '!min' + - 'interfaces' + - name: Delete legacy cni0 interface (podman < 1.6) command: ip link delete cni0 when: