From dd9424a0b8ca74a88475fd18434ae03f97175baf Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 21 Nov 2017 00:30:55 +0000 Subject: [PATCH] drop some file: state=touch calls in favor of copy with content and force=no --- roles/pdc/frontend/tasks/main.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/roles/pdc/frontend/tasks/main.yml b/roles/pdc/frontend/tasks/main.yml index 05e4a3dce7..3c27db11f4 100644 --- a/roles/pdc/frontend/tasks/main.yml +++ b/roles/pdc/frontend/tasks/main.yml @@ -27,12 +27,17 @@ with_items: - dest: /usr/lib/python2.7/site-packages/pdc/apps/componentbranch/management state: directory - - dest: /usr/lib/python2.7/site-packages/pdc/apps/componentbranch/management/__init__.py - state: touch - dest: /usr/lib/python2.7/site-packages/pdc/apps/componentbranch/management/commands/ state: directory + tags: + - pdc + - cron + +- name: Create files for exportbranches command if they do not already exist + copy: dest={{item.dest}} owner=apache group=apache content='' force=no + with_items: + - dest: /usr/lib/python2.7/site-packages/pdc/apps/componentbranch/management/__init__.py - dest: /usr/lib/python2.7/site-packages/pdc/apps/componentbranch/management/commands/__init__.py - state: touch tags: - pdc - cron