Skip to content

Instantly share code, notes, and snippets.

@sanguis
Created October 19, 2016 16:45
Show Gist options
  • Save sanguis/06b782b130592c40da9fbe292f70443c to your computer and use it in GitHub Desktop.
Save sanguis/06b782b130592c40da9fbe292f70443c to your computer and use it in GitHub Desktop.
skipping: [host.com] => (item=https://github.com/foobar/example-theme.git) => {"changed": false, "item": "https://github.com/foobar/example-theme.git", "ski
p_reason": "Conditional check failed", "skipped": true}
# item = "https://github.com/foobar/example-theme.git"
- name: clone or update repo when it's a git repo
git:
dest: "{{ public_root }}/{{ key }}/{{ type }}/{{ archive }}"
repo: "{{ item }}"
update: yes
ignore_errors: yes
when: item | search('git')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment