drop some file: state=touch calls in favor of copy with content and force=no

This commit is contained in:
Kevin Fenzi 2017-11-21 00:30:55 +00:00
parent 9ef0827546
commit dd9424a0b8

View file

@ -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