From: Lorin Hochstein Date: Thu, 5 Feb 2015 03:30:23 +0000 (-0500) Subject: add greet and greetvars X-Git-Url: https://git.halfball.org/?a=commitdiff_plain;h=8d121524564771259d83d854e34501b9022963ee;p=ansiblebook.git add greet and greetvars --- diff --git a/ch04/greet.yml b/ch04/greet.yml new file mode 100644 index 0000000..c50062a --- /dev/null +++ b/ch04/greet.yml @@ -0,0 +1,8 @@ +--- +- name: pass a message on the command line + hosts: localhost + vars: + greeting: "you didn't specify a message" + tasks: + - name: output a message + debug: msg="{{ greeting }}" diff --git a/ch04/greetvars.yml b/ch04/greetvars.yml new file mode 100644 index 0000000..e0f2b14 --- /dev/null +++ b/ch04/greetvars.yml @@ -0,0 +1,2 @@ +--- +greeting: hiya