diff options
Diffstat (limited to 'scenarios/os-odl-sfc_osm/role/os-odl-sfc_osm/tasks/register-vim.yml')
-rw-r--r-- | scenarios/os-odl-sfc_osm/role/os-odl-sfc_osm/tasks/register-vim.yml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/scenarios/os-odl-sfc_osm/role/os-odl-sfc_osm/tasks/register-vim.yml b/scenarios/os-odl-sfc_osm/role/os-odl-sfc_osm/tasks/register-vim.yml index 25b238ab..07e044bf 100644 --- a/scenarios/os-odl-sfc_osm/role/os-odl-sfc_osm/tasks/register-vim.yml +++ b/scenarios/os-odl-sfc_osm/role/os-odl-sfc_osm/tasks/register-vim.yml @@ -10,15 +10,16 @@ # This is a simple fix to wait for the OSM services in # the docker containers to start functioning as expected. -# TO DO: Once healthchecks are added to the OSM -# container stack, we'll use them to identify that -# they were started functioning and modify this task. +# TODO: Once healthchecks are added to the OSM +# container stack, use them to identify the status +# of the containers and modify this task. - name: Wait till the OSM services are ready - pause: - minutes: 2 + wait_for: timeout=120 + delegate_to: localhost - name: Register OpenStack as VIM - shell: "osm vim-create \ + shell: ". {{ osmrc_file_dest }} ; + osm vim-create \ --name openstack-site \ --user admin \ --password {{ openrc_os_password }} \ @@ -26,5 +27,4 @@ --account_type openstack \ --auth_url {{ openrc_os_auth_url }} \ --config='{insecure: true}'" - environment: - OSM_HOSTNAME: 127.0.0.1 + changed_when: False |