Last active
June 24, 2022 21:35
-
-
Save goozbach/2ae738db90f5030ac5475d27275c15b1 to your computer and use it in GitHub Desktop.
ansible extravars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: debug vars | |
hosts: localhost | |
tasks: | |
- name: debug vars | |
debug: | |
msg: "this is foo {{ foo | default('foodefault') }}; This is bar {{ bar | default('bardefault') }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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