I am trying to output what shift an event has happened depending on the
time of day, but keep running into errors or getting nothing back.
---
- hosts: localhost
vars:
shift: "{{ 'First Shift' if ansible_date_time.time > '09:00:00' &&
ansible_date_time.time < '17:00:01' else '' }}"
Yes that worked, but for the client I am working with, I am unable to
change the validation. How would I define it so that test_out.test would
work?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop
Thanks Syed. I added a validation step and that is failing.
Updated playbook
---
---
2 - name: Test playbook
3 hosts: localhost
4 connection: local
5 vars:
6 test: hello
7
8 tasks:
9 - name: test var
10debug:
11
I am trying to figure out why my variable is not defined and have not been
able to find any solutions online.
Can anyone help?
test.yml
---
- name: Test playbook
hosts: localhost
connection: local
vars:
test: hello
tasks:
- name: test var
debug:
msg: "{{