diff --git a/tasks/neutron_install.yml b/tasks/neutron_install.yml index e3ab93fb..cf5d99a5 100644 --- a/tasks/neutron_install.yml +++ b/tasks/neutron_install.yml @@ -110,7 +110,7 @@ path: "{{ neutron_bin | dirname }}/bin/python2.7" state: "absent" when: - - ansible_pkg_mgr in ['yum', 'zypper'] + - ansible_pkg_mgr in ['yum', 'dnf', 'zypper'] - neutron_get_venv | changed - name: Update virtualenv path diff --git a/tasks/neutron_post_install.yml b/tasks/neutron_post_install.yml index 51996448..f82a9bf5 100644 --- a/tasks/neutron_post_install.yml +++ b/tasks/neutron_post_install.yml @@ -129,7 +129,7 @@ when: - neutron_metadata_checksum_fix | bool - neutron_services['neutron-linuxbridge-agent']['group'] in group_names - - ansible_pkg_mgr == 'yum' + - ansible_pkg_mgr in ['yum', 'dnf'] - name: Ensure the postup/postdown scripts are loaded (SUSE) lineinfile: diff --git a/tests/test-install-previous-neutron.yml b/tests/test-install-previous-neutron.yml index be8e6768..a995dda7 100644 --- a/tests/test-install-previous-neutron.yml +++ b/tests/test-install-previous-neutron.yml @@ -36,7 +36,7 @@ - name: Set mount path for kernel modules (CentOS) set_fact: kernel_module_path: "usr/lib/modules" - when: ansible_pkg_mgr == 'yum' + when: ansible_pkg_mgr in ['yum', 'dnf'] - name: Neutron extra lxc config lxc_container: @@ -81,7 +81,7 @@ - libffi-devel when: - inventory_hostname in groups['neutron_all'] - - ansible_pkg_mgr == 'yum' + - ansible_pkg_mgr in ['yum', 'dnf'] - include: common/ensure-rabbitmq.yml vhost_name: "{{ neutron_rabbitmq_vhost }}" user_name: "{{ neutron_rabbitmq_userid }}"