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

ignore errors dependent on git_username (optional?) #8

Open
flybyray opened this issue Jan 14, 2022 · 0 comments
Open

ignore errors dependent on git_username (optional?) #8

flybyray opened this issue Jan 14, 2022 · 0 comments

Comments

@flybyray
Copy link
Contributor

Many repos are not public available hence there are a lot of errors.

The task

- name: clone all roles
git:
repo: "{{ item.repo }}"
dest: "{{ git_repository_destination }}/{{ item.dest }}"
accept_hostkey: yes
version: "{{ item.version | default('HEAD') }}"
force: "{{ item.force | default(git_force) }}"
with_items: "{{ git_repositories }}"
become: yes
become_user: "{{ git_username }}"
when:
- git_repositories is defined
- git_repository_destination is defined
- git_username is defined
- getent_passwd[git_username] != none
loop_control:
label: "{{ item.dest }}"

needs some sort of conditional to continue with other roles.

flybyray added a commit to flybyray/ansible-development-environment that referenced this issue Jan 14, 2022
robertdebock added a commit that referenced this issue Jan 21, 2022
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