add greet and greetvars
authorLorin Hochstein <lorin.hochstein@sendgrid.com>
Thu, 5 Feb 2015 03:30:23 +0000 (22:30 -0500)
committerLorin Hochstein <lorin.hochstein@sendgrid.com>
Thu, 5 Feb 2015 03:30:23 +0000 (22:30 -0500)
ch04/greet.yml [new file with mode: 0644]
ch04/greetvars.yml [new file with mode: 0644]

diff --git a/ch04/greet.yml b/ch04/greet.yml
new file mode 100644 (file)
index 0000000..c50062a
--- /dev/null
@@ -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 (file)
index 0000000..e0f2b14
--- /dev/null
@@ -0,0 +1,2 @@
+---
+greeting: hiya