Skip to content

Instantly share code, notes, and snippets.

@retr0h
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save retr0h/bc27f30e55ae007d9037 to your computer and use it in GitHub Desktop.
Save retr0h/bc27f30e55ae007d9037 to your computer and use it in GitHub Desktop.
- shell: dpkg -l {{ item }}
register: install_results
with_items:
- git
- libffi-dev
- debug: var={{ install_results }}
with_items:
- install_results.results
- name: ensure {{ item }} package is installed
assert:
that:
- "{{ item }} == 0"
with_items:
- install_results.results
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment