Skip to content

Instantly share code, notes, and snippets.

@ChristopherDavenport
Last active August 18, 2016 12:57
Show Gist options
  • Save ChristopherDavenport/db841acbb7b2003bc53aa586839d9df5 to your computer and use it in GitHub Desktop.
Save ChristopherDavenport/db841acbb7b2003bc53aa586839d9df5 to your computer and use it in GitHub Desktop.
Do different stuff with Yum
- name: Install Something and Uninstall something else
yum:
name={{ item.name }}
state={{ item.state | default(present) }}
with_items:
- { name: 'program1', state: 'latest' }
- { name: 'program2'}
- { name: 'program3', state: 'absent' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment