ESGF / esgf-ansible

A repository to hold Ansible inventory, playbooks, roles and tasks that specify the details of ESGF Node deployments.
3 stars 10 forks source link

esgf-config repo still present #64

Closed sashakames closed 5 years ago

sashakames commented 5 years ago

It appears that if installation fails at some point, a clone of the esgf-config repo is left in /tmp with modifications that causes a subsequent clone to fail:

task path: /Users/ames4/git-repos/esgf-ansible/roles/base/tasks/config.yml:2
fatal: [esgf-test-data.llnl.gov]: FAILED! => {
    "before": "c62d6d576374263a375bf1b1436527cb7b618052",
    "changed": false
}

MSG:

Local modifications exist in repository (force=no).

PLAY RECAP *********************************************************************
esgf-test-data.llnl.gov    : ok=78   changed=7    unreachable=0    failed=1

This might be hard to reproduce. If the repo isn't need perhaps the best option is to delete it so nothing is left behind

I had used devel with the most recent commit: ff088ae73d342d502

nathanlcarlson commented 5 years ago

I think it would be reasonable to set force: yes ?

nathanlcarlson commented 5 years ago

This repo will get force written to /tmp. The .xml files in /esg/config are not force written. So if a .xml file is already in place there, it is not overwritten.