]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
lv-create: use the template module to write log file
authorAndrew Schoen <aschoen@redhat.com>
Wed, 8 Aug 2018 21:43:55 +0000 (16:43 -0500)
committerSébastien Han <seb@redhat.com>
Thu, 16 Aug 2018 14:38:23 +0000 (16:38 +0200)
commit35301b35af4e71713edb944eb54654b587710527
tree6c4037b75c27842df7d98872dd90137c98959bb1
parent909b38da829485b2ec56b61bf2b2fa0df02b0ed4
lv-create: use the template module to write log file

The copy module will not expand the template and render the variables
included, so we must use template.

Creating a temp file and using it locally means that you must run the
playbook with sudo privledges, which I don't think we want to require.
This introduces a logfile_path variable that the user can use to control
where the logfile is written to, defaulting to the cwd.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
infrastructure-playbooks/lv-create.yml
infrastructure-playbooks/templates/lv-create-log.j2 [new file with mode: 0644]