Skip to content

Instantly share code, notes, and snippets.

@moritzheiber
Created April 17, 2017 15:15
Show Gist options
  • Select an option

  • Save moritzheiber/ddc554e2271bf24bedbbda6e690f482a to your computer and use it in GitHub Desktop.

Select an option

Save moritzheiber/ddc554e2271bf24bedbbda6e690f482a to your computer and use it in GitHub Desktop.
Ansible example
ubuntu:
packages:
- package: "libssl-dev"
- package: "zlib1g-dev"
- package: "git-core"
- package: "build-essential"
- package: "libxml2-dev"
- package: "libxslt1-dev"
- package: "imagemagick"
- package: "nodejs"
- package: "yarn"
- package: "libreadline-dev"
---
- name: Install packages
package:
name: "{{ item.package }}"
update_cache: yes
cache_valid_time: 3600
state: latest
install_recommends: no
become: yes
with_items: ubuntu.packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment