summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/post-openstack/tasks
diff options
context:
space:
mode:
authorJustin chi <chigang@huawei.com>2017-07-14 10:16:59 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-07-14 10:16:59 +0000
commit37d0565a0277263d11023b62562d130bdd9ee997 (patch)
treea1154f2ff4756ce9e98f81a5eb68fea059eea43b /deploy/adapters/ansible/roles/post-openstack/tasks
parentf35c02e9e7d68c0b21e3a9f8cae665b964e75a79 (diff)
parentf31ca71ffc5f4110796655ded3c7a6d144f43e42 (diff)
Merge "change the public endpoint protocol with https"
Diffstat (limited to 'deploy/adapters/ansible/roles/post-openstack/tasks')
-rw-r--r--deploy/adapters/ansible/roles/post-openstack/tasks/main.yml13
1 files changed, 7 insertions, 6 deletions
diff --git a/deploy/adapters/ansible/roles/post-openstack/tasks/main.yml b/deploy/adapters/ansible/roles/post-openstack/tasks/main.yml
index 8140cee7..3641faeb 100644
--- a/deploy/adapters/ansible/roles/post-openstack/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/post-openstack/tasks/main.yml
@@ -23,15 +23,16 @@
cd /opt/openstack-ansible/playbooks; \
openstack-ansible create-flavor.yml > /dev/null"
-- name: change https to http
- shell: "export ANSIBLE_LOG_PATH=/var/ansible/run/openstack_ocata-opnfv2/ansible.log; \
- cd /opt/openstack-ansible/playbooks; \
- openstack-ansible http.yml > /dev/null"
-
- name: run ansible yml to fetch openrc
shell: "export ANSIBLE_LOG_PATH=/var/ansible/run/openstack_ocata-opnfv2/ansible.log; \
cd /opt/openstack-ansible/playbooks; \
- openstack-ansible fetch-openrc.yml > /dev/null"
+ openstack-ansible fetch-files.yml > /dev/null"
+
+- name: replace http with https in openrc
+ replace:
+ dest: /opt/openrc
+ regexp: "http://"
+ replace: "https://"
- name: replace internalURL with publicURL in openrc
replace: