Commit 8dac2115 authored by Florian Haas's avatar Florian Haas
Browse files

Get timestamp even in check mode

We want to set the _timestamp fact, even when we're running
"ansible-playbook --check". Ansible skips any tasks using the shell
and command modules in check mode by default, so we have to force
running the "date" command by setting the (confusingly named)
"check_mode: no" option on that task.
parent 17a61b42
......@@ -5,6 +5,7 @@
register: date
when: _timestamp is not defined
changed_when: false
check_mode: no
- always
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment