Replace hardcoded stack user by ansible_user

Replace hardcoded stack user in tasks by ansible_user

Change-Id: I7385d8ae8a010fa2c495edde9dd8e8c68fd6c5d1
This commit is contained in:
Sagi Shnaidman 2016-11-30 16:38:25 +02:00 committed by wes hayutin
parent 9c833fa675
commit e9881317f4
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
- name: Unarchive shell scripts
shell: >
gunzip "{{ artcl_collect_dir }}/undercloud/home/stack/{{ item }}.sh.gz";
gunzip "{{ artcl_collect_dir }}/undercloud/home/{{ ansible_user }}/{{ item }}.sh.gz";
with_items: "{{ artcl_create_docs_payload.included_deployment_scripts }}"
ignore_errors: yes
when: artcl_gzip_only|bool
@ -14,7 +14,7 @@
- name: Generate rST docs from scripts and move to Sphinx src dir
shell: >
awk -f "{{ local_working_dir }}/usr/local/share/ansible/roles/collect-logs/scripts/doc_extrapolation.awk" \
"{{ artcl_collect_dir }}/undercloud/home/stack/{{ item }}.sh" > \
"{{ artcl_collect_dir }}/undercloud/home/{{ ansible_user }}/{{ item }}.sh" > \
"{{ artcl_docs_source_dir }}/{{ item }}.rst"
with_items: "{{ artcl_create_docs_payload.included_deployment_scripts }}"
ignore_errors: yes