hi group,

I have tried to expand a variable ('environment' in this case) inside a 
cron job specification, but it does not seem to be possible.
ansible version 1.7.2

--------------------
all.yml:

[all:vars]
environment=    test
-------------------------
roles/av/tasks/main.yml:

- name: install crontab for user av
  cron: user="av" name="avr" minute="30" hour="23" job="ENVIRONMENT={{ 
environment }} xvfb-run /usr/local/bin/validator" state="present" 
backup="yes"
  register: backup

-------------

The result is the crontab entry

30 23 * * * ENVIRONMENT={} xvfb-run /usr/local/bin/validator

while I should expect

30 23 * * * ENVIRONMENT=test xvfb-run /usr/local/bin/validator

Is it possible at all or am I trying to accomplish the impossible?

thanks, Ruud


-- 
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/4cd30f1d-7819-4401-a711-0aa6fe79082e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to