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:
parent
d8e2898cc7
commit
cb60dca825
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue