File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
tests/integration/targets/cics_cmci/playbooks Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 7
7
hosts : ' localhost'
8
8
gather_facts : ' true'
9
9
10
+ vars :
11
+ mac_message : >-
12
+ .*nodename nor servname provided, or not known$
13
+ linux_message : >-
14
+ .*Name or service not known$
15
+ error_message : " {{ mac_message if ansible_system == 'Darwin' else linux_message }}"
16
+
10
17
tasks :
11
18
- name : Print all available facts
12
19
ansible.builtin.debug :
34
41
that :
35
42
- result.failed is false
36
43
- ' {{ result.msg[:76] == "Error performing CMCI request: <urllib3.connection.HTTPSConnection object at" }}'
37
- - ' {{ result.msg[-92:] == "Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known" }}'
44
+ - ' {{ result.msg is match(error_message) }}'
You can’t perform that action at this time.
0 commit comments