instead of file module and touch, which changes every time, we use copy and empty contents and force no if the file already exists

This commit is contained in:
Kevin Fenzi 2017-11-22 01:04:21 +00:00
parent d8e2898cc7
commit cb60dca825

View file

@ -102,7 +102,7 @@
command: mv /etc/module-build-service/config.py /etc/module-build-service/base_config.py creates=/etc/module-build-service/base_config.py
- name: Touch __init__.py file
file: path=/etc/module-build-service/__init__.py state=touch
copy: dest=/etc/module-build-service/__init__.py force=no content=''
- name: Copy production config
template: src=config.py dest=/etc/module-build-service/config.py