Hi Kai, Brian

Some fantastic suggestions there!

@Kai your suggestion is greater however, the output is in the format:
Mon 24 Jul 21:23:08 BST 2017

I was looking for it to be in the format: 2017-07-24_02:26:08 - as I will 
be using that to create the directory names.

@Brian I think your suggestions looks like it's going to do exactly what I 
want, however when I ran it, I kept getting the following errors:

    "failed": true,
    "msg": "the field 'args' has an invalid value, which appears to include 
a variable that is undefined. The error was: 'dict object' has no attribute 
'ansible_date_time'\n\nThe error appears to have been in 
'/usr/playbooks/website-playbooks/roles/websites-backup/tasks/main.yml': 
line 14, column 5, but may\nbe elsewhere in the file depending on the exact 
syntax problem.\n\nThe offending line appears to be:\n\n\n  - name: 
Gathering and setting Facts for this deploy\n    ^ here\n"
}
to retry, use: --limit 
@/usr/playbooks/website-playbooks/websites-backup.retry

I tried a few modifications of it, but I didn't have much luck...

Regards
Jinal

-- 
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/769c2c89-e772-454b-bcc5-f17e1cc0ff1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to