'Check in ansible if value is lower with islower
Could someone give an example to check if the value of a variable is lowercase with islower?
Thanks
Solution 1:[1]
use the islower function:
- name: echo test
debug:
msg: |
is low lower?: {{ low.islower() }}
is notlow lower?: {{ notlow.islower() }}
vars:
low: er
notlow: Er
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Frenchy |
