On 3/8/20 7:54 AM, 이승준 wrote:
> I want to put the numbers 1 to 10 in the {{}} variable but it fails
> 
> How to put numbers from 1 to 10 in a variable
> 
> The condition does not use with_item
> 
> playbook example : 
> - name: Alarm check
>       when: '"{{  }} alarms currently active" in host.stdout'
>       debug: msg="{{ inventory_hostname }}:Alarm is nomal"
>       register: result_alarm
> 
> Thank you regard

Can you please elaborate on the objectives of the task? What are the contents 
of host.stdout?

Regards
        Racke

> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/7d9fd35e-7afa-4de5-9f71-d550d07bea2f%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/7d9fd35e-7afa-4de5-9f71-d550d07bea2f%40googlegroups.com?utm_medium=email&utm_source=footer>.


-- 
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/542a3bbd-3bf4-0142-cb81-b497910f310d%40linuxia.de.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to