Add creates= to mv command
This commit is contained in:
parent
9156326f9c
commit
2937f0dd71
1 changed files with 1 additions and 2 deletions
|
@ -84,8 +84,7 @@
|
|||
register: base_config_stat
|
||||
|
||||
- name: Move config.py to base_config.py
|
||||
command: mv /etc/module-build-service/config.py /etc/module-build-service/base_config.py
|
||||
when: base_config_stat.stat.exists == False
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue