---
- hosts: server01
remote_user: jlouthan
vars:
proddbhost: proddb01
tasks:
- name: Get current timestamp
local_action: command bash -c 'date +%Y-%m-%d.%H%M'
register: timestamp
run_once: true
- name: Get current datestamp
local_action: command bash -c 'date +%Y-%m-%d'
register: datestamp
run_once: true
- include: playbook-01.yml
On Friday, May 20, 2016 at 7:49:18 AM UTC-5, Brian Coca wrote:
>
> So vars seems to be incorrectly indented, also you should not need to add
> 'bash' to command
>
> The registered var should persist but it is available only through
> the server01 host.
>
>
> ----------
> Brian Coca
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/330c122e-b4f8-4985-a19a-f48abb1f873b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.