Files
tripleo-quickstart-extras/roles/tht-prep-config/tasks/main.yaml
Sorin Sbarnea 8b2e5653e4 lint: fixed ansible-lint 301 rule
Change-Id: I8ce7e11cd6027b53f1112c5880a5891c778db9d4
2020-01-05 19:37:09 +00:00

19 lines
502 B
YAML

---
- name: Evaluate the custom tht script name
set_fact:
script_name: "{{ custom_tht_log|replace('_', '-')|replace('.log', '.sh') }}"
- name: Create custom tht script
template:
src: "{{ custom_tht_script }}"
dest: "{{ working_dir }}/{{ script_name }}"
mode: 0755
- name: Checkout custom tht heat templates from src
shell: >
set -o pipefail &&
{{ working_dir }}/{{ script_name }} 2>&1 {{ timestamper_cmd }} >
{{ custom_tht_log }}
become: true
changed_when: true