tripleo-quickstart-extras/roles/undercloud-setup/tasks/hostname.yml
Sagi Shnaidman b6fd1291cf Add timestamps to logs for indexing in logstash
Add timestamps to logs of multinode scripts, need this for indexing
in openstack ELK.

Change-Id: I8ded69e12aa82ff488668079d48f1f837ac802d9
2017-06-20 22:16:05 +03:00

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