Skip to content
Snippets Groups Projects
Commit 9f32b33a authored by Chris Croome's avatar Chris Croome
Browse files

Fix run XPath locally

parent f0f36cf0
No related branches found
No related tags found
No related merge requests found
Pipeline #23871 passed
......@@ -2,6 +2,11 @@
- name: Add agent nodes to icinga_agent_nodes group
block:
- name: Debug groups
ansible.builtin.debug:
var: groups['all']
verbosity: 2
- name: "Debug agent nodes with a icinga_parent_node set to {{ icinga_master_node }} not in the icinga_agent_nodes group"
ansible.builtin.debug:
var: hostname
......
......@@ -34,7 +34,6 @@
check_mode: false
changed_when: false
delegate_to: "{{ icinga_master_node }}"
become: false
register: icinga_nmap_xml
- name: Debug nmap XML output
......@@ -47,6 +46,7 @@
xmlstring: "{{ icinga_nmap_xml.stdout }}"
xpath: "/nmaprun/host/ports/port[@portid='5665']/state"
content: attribute
become: false
delegate_to: localhost
register: icinga_port_state_results
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment