Add post-provision playbook to pass ml2_conf.ini
[releng-xci-scenarios.git] / scenarios / os-odl-nofeature / role / os-odl-nofeature / tasks / post-deployment.yml
1 # SPDX-license-identifier: Apache-2.0
2 ##############################################################################
3 # Copyright (c) 2018 SUSE Linux GmbH
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10 - name: "Fetch the ip of the neutron server container"
11   shell: 'grep controller00_neutron_server_container -n1 /etc/openstack_deploy/openstack_inventory.json | grep ansible_host | cut -d":" -f2 | cut -d "\"" -f2'
12   register: ip
13   change_when: False
14
15 - name: Fetch the ml2_conf.ini to process ODL variables
16   command: "scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no {{ ip.stdout }}:/etc/neutron/plugins/ml2/ml2_conf.ini /tmp/ml2_conf.ini"
17   change_when: False