Management Node:

   - CentOs 7.1
   - Ansible 2.1
   
Remote Node:

   - Windows 7
   - Powershell 3.0
   
I'm trying to display an error message if the file ADS800Dice.s3db has not 
been modified for more than an hour.  The problem in in the last line.  If 
I leave the quotes around the number 60, it gives me a false negative 
(evaluates to true when false).  When I remove the quote around the number 
60, it gives me a false positive (evaluates to false when true).  I'd 
appreciate any help with this.



  - name: GET AGE OF DATABASE ADS800DICE.S3DB ON SHARE
    script: minutesSinceAccess.ps1 "{{uncServer}}" 
"{{path}}/ADS800Dice.s3db" "seagate\{{userName}}" "password"
    register: result
  - set_fact: tisDatabaseAge={{result.stdout_lines.4}}
  - name: CHECK AGE OF ADS800DICE.S3DB ON SHARE
    debug: msg="ERROR! ADS800DICE.S3DB HAS NOT BEEN UPDATED FOR 
{{tisDatabaseAge}} MINUTES."
    when: (tisDatabaseAge > "60")

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/51de8ad5-5fc8-4787-a591-cf61a7433a8c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to