Ansible-puppet must create the reports dir

Previously the puppetmaster was creating reports directories. Now that
ansible is in charge, it must do it.

Change-Id: I26e1e2ebd45f0c7d75652f9acb9999aee8a3e40c
This commit is contained in:
Spencer Krum 2016-02-23 15:02:28 -08:00
parent ffeeba25a4
commit 9c526e11ce
1 changed files with 4 additions and 0 deletions

View File

@ -66,6 +66,10 @@
- name: set log filename
set_fact: puppet_logfile="{{ files.stdout_lines|sort|last }}"
- name: create reports directory
file: path=/var/lib/puppet/reports/{{ ansible_fqdn }} owner=root group=root mode=0755 state=directory
delegate_to: localhost
- name: fetch file
synchronize:
mode: pull