Skip to content

Commit 3c5013b

Browse files
author
pascal
committed
Make sure ansible config is deleted before re-creating
1 parent e3af3a5 commit 3c5013b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/base-cmd-ansible-abstract.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default abstract class AnsibleCmd extends BaseCmd {
6868
const src = fspath.dirname(ansiblePath)
6969
const dest = this.ansibleProjectPlaybooksPath + fspath.dirname(src)
7070
this.log('Copy Ansible configuration')
71-
execSync(this.dockerBin + ' exec -t --user ce-dev ce_dev_controller mkdir -p ' + dest)
71+
execSync(this.dockerBin + ' exec -t --user ce-dev ce_dev_controller mkdir -p ' + dest + ' && rm -rf ' + dest + '/*')
7272
execSync(this.dockerBin + ' cp ' + src + ' ce_dev_controller:' + dest)
7373
const script = fspath.join(this.ansibleScriptsPath, this.ansibleScript)
7474
const cmd = script + ' ' + this.getCommandParameters(ansiblePath)

0 commit comments

Comments
 (0)