diff --git a/playbooks/library/network_metadata.py b/playbooks/library/network_metadata.py index e320c201b..bbe1cb6bb 100644 --- a/playbooks/library/network_metadata.py +++ b/playbooks/library/network_metadata.py @@ -34,7 +34,7 @@ def main(): vlan_id=dict(required=False), network_mtu=dict(required=False), nics=dict(required=False, type='list'), - node_network_info=dict(required=False) + node_network_info=dict(required=False, type='dict') ) module = AnsibleModule(argument_spec) diff --git a/playbooks/roles/bifrost-configdrives-dynamic/tasks/main.yml b/playbooks/roles/bifrost-configdrives-dynamic/tasks/main.yml index 1406e699a..e7195fa8f 100644 --- a/playbooks/roles/bifrost-configdrives-dynamic/tasks/main.yml +++ b/playbooks/roles/bifrost-configdrives-dynamic/tasks/main.yml @@ -48,7 +48,7 @@ vlan_id: "{{ vlan_id | default('') }}" network_mtu: "{{ network_mtu | default('1500') }}" nics: "{{ nics | default(omit) }}" - node_network_info: "{{ node_network_info | default('') }}" + node_network_info: "{{ node_network_info | default({}) }}" when: addressing_mode is undefined or "dhcp" not in addressing_mode - name: "Place network info template in each openstack/latest folder" template: