Re: [ansible-project] ansible variable in number

2020-03-07 Thread Dick Visser
If you are trying to find out if there are any alarm for this host, then use regex search: https://docs.ansible.com/ansible/latest/user_guide/playbooks_tests.html#testing-strings On Sun, 8 Mar 2020 at 08:10, 이승준 wrote: > > The contents of host.stdout is this No alarms currently active > > "1

[ansible-project] Re: ansible variable in number

2020-03-07 Thread SeungJoon
The contents of host.stdout is this No alarms currently active "1 alarms currently active" "No alarms currently active" -- 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

Re: [ansible-project] ansible variable in number

2020-03-07 Thread 이승준
The contents of host.stdout is this No alarms currently active "1 alarms currently active" "No alarms currently active" Regards -- 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

Re: [ansible-project] ansible variable in number

2020-03-07 Thread Stefan Hornburg (Racke)
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

[ansible-project] ansible variable in number

2020-03-07 Thread 이승준
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

Re: [ansible-project] Re: ansible-galaxy git clone failures

2020-03-07 Thread Dick Visser
Hi Thanks for using ansible. To answer your question more information is needed. Could you please describe clearly all of the below: - What goal you are trying to achieve. - How you are doing this. - What problems you encounter. - Which commands did you run, and what actual output did you

[ansible-project] Re: ansible-galaxy git clone failures

2020-03-07 Thread Papanito
I face the same problem but using roles from git is failing for me as well (private as well as public repo). Also indications from https://github.com/ansible/ansible/issues/8937 dit not help - the issue refers to ansible 1.8, wheres I am using 2.9.5 On Friday, 11 August 2017 14:50:40 UTC+2,

Re: [ansible-project] How to specify foldername with wildcard inside a jinja template

2020-03-07 Thread Dick Visser
Try the 'lines' lookup with a custom 'find' shell command ? On Sat, 7 Mar 2020 at 06:27, Shifa Shaikh wrote: > > I wish to check using if condition inside a jinja template where any of the > folders starting with the name "dump_" has any file starting with the name bad > > For for single