fusor / catasb

Ansible scripts to setup an 'oc cluster up' environment for testing the Service Catalog and Ansible Service Broker on EC2 or Local
47 stars 33 forks source link

Cloning to /tmp/ansible-service-broker fails if the directory already exists with local #36

Closed eriknelson closed 7 years ago

eriknelson commented 7 years ago

Seeing this failure, probably isolated to me since I do this a lot, but I already had /tmp/ansible-service-broker present on my local system, so it failed to clone the broker:

TASK [ansible_service_broker_setup : git clone ansible-service-broker] *********
fatal: [localhost]: FAILED! => {"changed": false, "cmd": "/usr/bin/git clone --origin origin https://github.com/fusor/ansible-service-broker.git /tmp/ansible-service-broker", "failed": true, "msg": "fatal: destination path '/tmp/ansible-service-broker' already exists and is not an empty directory.", "rc": 128, "stderr": "fatal: destination path '/tmp/ansible-service-broker' already exists and is not an empty directory.\n", "stdout": "", "stdout_lines": []}
        to retry, use: --limit @/tmp/retry/setup_local_environment.retry
jwmatthews commented 7 years ago

Closing as we moved away from deploying with asbcli