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
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
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
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
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
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
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,
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