Skip to content

Instantly share code, notes, and snippets.

@goozbach
Last active June 24, 2022 21:35
Show Gist options
  • Save goozbach/2ae738db90f5030ac5475d27275c15b1 to your computer and use it in GitHub Desktop.
Save goozbach/2ae738db90f5030ac5475d27275c15b1 to your computer and use it in GitHub Desktop.
ansible extravars
---
- name: debug vars
hosts: localhost
tasks:
- name: debug vars
debug:
msg: "this is foo {{ foo | default('foodefault') }}; This is bar {{ bar | default('bardefault') }}"
#! /usr/bin/env bash
ansible-playbook playbook.yml
ansible-playbook -e "foo=resetfoo" playbook.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment