Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ignore_errors from setup_sources/tasks/annex.yml #165

Open
ekohl opened this issue Dec 18, 2018 · 0 comments
Open

Remove ignore_errors from setup_sources/tasks/annex.yml #165

ekohl opened this issue Dec 18, 2018 · 0 comments

Comments

@ekohl
Copy link
Member

ekohl commented Dec 18, 2018

The block with ignore_errors makes it hard to spot real errors vs expected errors:

- name: 'Search annex for web link'
shell: 'git annex whereis {{ setup_sources_sourcepath }} 2>/dev/null | grep -q "web:"'
args:
chdir: "{{ package_dir }}"
changed_when: False
register: setup_sources_search_annex
ignore_errors: yes
when: (not setup_sources_source_exists.stat.exists) or ( setup_sources_source_exists.stat.exists and setup_sources_source_exists.stat.islnk is defined and setup_sources_source_exists.stat.islnk )

In #94 an attempt was made to replace the failure with native ansible code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant