b6fd1291cf
Add timestamps to logs of multinode scripts, need this for indexing in openstack ELK. Change-Id: I8ded69e12aa82ff488668079d48f1f837ac802d9
13 lines
316 B
YAML
13 lines
316 B
YAML
---
|
|
|
|
- name: Install hostname correcting script
|
|
template:
|
|
src: hostname.sh.j2
|
|
dest: "{{ working_dir }}/hostname.sh"
|
|
mode: 0755
|
|
|
|
- name: Run the hostname correcting script
|
|
shell: >
|
|
set -o pipefail &&
|
|
{{ working_dir }}/hostname.sh 2>&1 {{ timestamper_cmd }} > {{ working_dir }}/hostname.sh.log
|