Allow os_neutron to run in check mode

Let role fetch config file/u-c regardless of mode. These are safe
operations to run in check mode and shouldn't affect anything.

Change-Id: I09305017f63993a9bd665f1887b6cc0b6beb6e5b
This commit is contained in:
Dmitriy Rabotyagov 2022-04-14 18:48:34 +02:00
parent fb6284b257
commit 18c274ffa6
3 changed files with 4 additions and 0 deletions

View File

@ -96,6 +96,8 @@
group_names: "{{ group_names }}"
register: pndata
when: neutron_provider_networks is not defined
check_mode: false
changed_when: false
tags:
- always

View File

@ -60,6 +60,7 @@
url: "{{ neutron_upper_constraints_url }}"
return_content: yes
register: _u_c_contents
check_mode: false
- name: Install the python venv
import_role:

View File

@ -136,6 +136,7 @@
state: absent
changed_when: false
delegate_to: localhost
check_mode: false
with_items: "{{ neutron_core_files }}"
# NOTE(cloudnull): This will ensure strong permissions on all rootwrap files.