Hello
I am trying to gather facts (date and time) on the local machine (Ansible
Host) using (local_action) before the rest of the playbook continues:
- name: Gathering and setting Facts for this deploy
local_action:
set_fact:
date_time: '{{ ansible_date_time.date }}_{{ ansible_date_time.time }}'
Basically, the remote host is in a different time zone, but I would like to
use the date of the Ansible Host for creating directories etc.
But I keep seeing the following error:
ERROR! no action detected in task. This often indicates a misspelled module
name, or incorrect module path.
The error appears to have been in
'/usr/playbooks/roles/websites-backup/tasks/main.yml': line 3, column 3,
but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: Gathering and setting Facts for this deploy
^ here
The error appears to have been in '
/usr/playbooks/roles/websites-backup/tasks/main.yml': line 3, column 3, but
may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: Gatherin and setting Facts for this deploy
^ here
Regards
JS
--
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/3955f4db-893a-4874-9ef8-66947e5b4cd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.