Skip to content

Instantly share code, notes, and snippets.

@amaurybsouza
Created February 28, 2022 11:26
Show Gist options
  • Select an option

  • Save amaurybsouza/8413a4734fdb84b4ee135eccf5e1266b to your computer and use it in GitHub Desktop.

Select an option

Save amaurybsouza/8413a4734fdb84b4ee135eccf5e1266b to your computer and use it in GitHub Desktop.
ansible-variaveisv2
---
- hosts: prod
become: true
gather_facts: false
vars:
package: git
tasks:
- name: Install packages on system
apt:
name={{ package }}
state=latest
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment