aboutsummaryrefslogtreecommitdiffstats
path: root/scenarios/os-odl-sfc/role/os-odl-sfc/tasks
diff options
context:
space:
mode:
authorManuel Buil <mbuil@suse.com>2018-10-19 18:34:47 +0200
committerManuel Buil <mbuil@suse.com>2018-10-19 18:34:47 +0200
commit9739f4cfe5ad98ad4811d98e9ae6452f0e55a0be (patch)
tree6d942d8fdbf15d63fc3fc757733203a4909f6d90 /scenarios/os-odl-sfc/role/os-odl-sfc/tasks
parent6b956361494a573dfcd7e1440b8183e77be94ee4 (diff)
Use changed_when instead of the when condition
The 'when' condition does not make sense and it was added in order to avoid the ansible-lint error which requires all command or shell modules to use a condition. This can be avoided with changed_when as explained: http://willthames.github.io/2016/09/21/using-command-and-shell-in-ansible.html Change-Id: I36316ea0848cff9763745af6dd8d8defcd993b70 Signed-off-by: Manuel Buil <mbuil@suse.com>
Diffstat (limited to 'scenarios/os-odl-sfc/role/os-odl-sfc/tasks')
-rw-r--r--scenarios/os-odl-sfc/role/os-odl-sfc/tasks/post-deployment.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/scenarios/os-odl-sfc/role/os-odl-sfc/tasks/post-deployment.yml b/scenarios/os-odl-sfc/role/os-odl-sfc/tasks/post-deployment.yml
index cc6c47ff..837a8ee3 100644
--- a/scenarios/os-odl-sfc/role/os-odl-sfc/tasks/post-deployment.yml
+++ b/scenarios/os-odl-sfc/role/os-odl-sfc/tasks/post-deployment.yml
@@ -10,8 +10,8 @@
- name: "Fetch the ip of the neutron server container"
shell: 'grep controller00_neutron_server_container -n1 /etc/openstack_deploy/openstack_inventory.json | grep ansible_host | cut -d":" -f2 | cut -d "\"" -f2'
register: ip
- when: "'odl' in deploy_scenario"
+ change_when: False
- name: Fetch the ml2_conf.ini to process ODL variables
command: "scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no {{ ip.stdout }}:/etc/neutron/plugins/ml2/ml2_conf.ini /tmp/ml2_conf.ini"
- when: "'odl' in deploy_scenario"
+ change_when: False