diff options
author | Tim Rozet <trozet@redhat.com> | 2017-11-13 16:10:36 -0500 |
---|---|---|
committer | Tim Rozet <trozet@redhat.com> | 2017-11-16 14:51:16 -0500 |
commit | b66bc18349140b0a3e34fac207819c57c25a1cbb (patch) | |
tree | 6d63e597faf292c21e9dca4f4d93cd02ea299573 /lib/ansible | |
parent | e1c2217d0310a3fec511f34b36e8391aa83eac01 (diff) |
Migrates Apex to Pike
JIRA: APEX-544
Change-Id: Ibee2068e782da75268ed76beb36ccb5dcd1847d6
Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'lib/ansible')
-rw-r--r-- | lib/ansible/playbooks/post_deploy_undercloud.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/ansible/playbooks/post_deploy_undercloud.yml b/lib/ansible/playbooks/post_deploy_undercloud.yml index bd62f9cf..2e1bf0f3 100644 --- a/lib/ansible/playbooks/post_deploy_undercloud.yml +++ b/lib/ansible/playbooks/post_deploy_undercloud.yml @@ -18,10 +18,23 @@ - name: Find admin project id shell: "{{ overcloudrc }} && openstack project list | grep admin | awk '{print $2}'" register: os_project_id + - name: Ensure rc files owned by stack + file: + path: "/home/stack/{{ item }}" + state: file + owner: stack + group: stack + mode: 0644 + become: yes + with_items: + - overcloudrc + - overcloudrc.v3 - name: Inject OS_PROJECT_ID and OS_TENANT_NAME into overcloudrc lineinfile: line: "{{ item }}" path: /home/stack/overcloudrc + become: yes + become_user: stack with_items: - "export OS_PROJECT_ID={{ os_project_id.stdout }}" - "export OS_TENANT_NAME=admin" @@ -59,6 +72,8 @@ regexp: 'SDN_CONTROLLER_IP' path: "/home/stack/{{ item }}" when: sdn != false + become: yes + become_user: stack with_items: - overcloudrc - overcloudrc.v3 @@ -115,6 +130,7 @@ become_user: stack when: congress with_items: "{{ congress_datasources }}" + ignore_errors: yes - name: Configure Calipso block: - name: Install Calipso dependencies |