title: Ansible date variable
body: <p>I'm trying to learn how to use Ansible facts as variables, and I don't get it. When I run...</p>
  
  <pre><code>$ ansible localhost -m setup
  </code></pre>
  
  <p>...it lists all of the facts of my system. I selected one at random to try and use it, ansible_facts.ansible_date_time.date, but I can't figure out HOW to use it. When I run...</p>
  
  <pre><code>$ ansible localhost -m setup -a "filter=ansible_date_time"
  localhost | success &gt;&gt; {
      "ansible_facts": {
          "ansible_date_time": {
              "date": "2015-07-09",
              "day": "09",
              "epoch": "1436460014",
              "hour": "10",
              "iso8601": "2015-07-09T16:40:14Z",
              "iso8601_micro": "2015-07-09T16:40:14.795637Z",
              "minute": "40",
              "month": "07",
              "second": "14",
              "time": "10:40:14",
              "tz": "MDT",
              "tz_offset": "-0600",
              "weekday": "Thursday",
              "year": "2015"
          }
      },
      "changed": false
  }
  </code></pre>
  
  <p>So, it's CLEARLY there. But when I run...</p>
  
  <pre><code>$ ansible localhost -a "echo {{ ansible_facts.ansible_date_time.date }}"
  localhost | FAILED =&gt; One or more undefined variables: 'ansible_facts' is undefined
  
  $ ansible localhost -a "echo {{ ansible_date_time.date }}"
  localhost | FAILED =&gt; One or more undefined variables: 'ansible_date_time' is undefined
  
  $ ansible localhost -a "echo {{ date }}"
  localhost | FAILED =&gt; One or more undefined variables: 'date' is undefined
  </code></pre>
  
  <p>What am I not getting here? How do I use Facts as variables?</p>