Skip to content

Instantly share code, notes, and snippets.

@halberom
halberom / 00_play.yml
Created May 12, 2017 09:33
ansible - example of using selectattr to filter on attrs that are defined and true
---
- hosts: localhost
connection: local
gather_facts: False
vars:
apache2_vhosts:
- name: "stage.example.org"
docroot: "/var/www/stage1"
- name: "stage2.example.org"
docroot: "/var/www/stage2"