Skip to content
Snippets Groups Projects
Verified Commit 350575e9 authored by Chris Croome's avatar Chris Croome
Browse files

fix for remote nodes

parent 1e393676
No related branches found
No related tags found
No related merge requests found
Pipeline #33249 passed
......@@ -30,21 +30,12 @@ before_script:
- which molecule
- molecule --version
stages:
- lint
- bookworm
# - bullseye
bookworm:
image: registry.git.coop/webarch/containers/images/bookworm:20240209
image: registry.git.coop/webarch/containers/images/bookworm:20240426
stage: bookworm
script:
- pre-commit install
- pre-commit run --all-files
- molecule test --all
# The Bullseye test run OK but Molecule never completes
# https://github.com/ansible/molecule/discussions/4020
# bullseye:
# image: registry.git.coop/webarch/containers/images/bullseye:20240209
# stage: bullseye
# script:
# - molecule test
...
......@@ -25,7 +25,7 @@ repos:
- templates
# https://github.com/jackdewinter/pymarkdown/releases
- repo: https://github.com/jackdewinter/pymarkdown.git
rev: v0.9.18
rev: v0.9.19
hooks:
- id: pymarkdown
name: Markdown Lint
......@@ -34,7 +34,7 @@ repos:
- README.md
# https://github.com/ansible/ansible-lint/releases
- repo: https://github.com/ansible/ansible-lint.git
rev: v24.2.2
rev: v24.2.3
hooks:
- id: ansible-lint
name: Ansible Lint
......
......@@ -115,13 +115,17 @@
tags:
- icinga
- name: Loop though the agent node hosts including tasks to generate a config file for each
- name: Loop though the agent node hosts including tasks to generate a config file for each host in the current play plus and remote hosts
ansible.builtin.include_tasks: host.yml
loop: "{{ icinga_agent_node_hosts_required }}"
loop_control:
loop_var: icinga_host
label: "{{ icinga_host }}"
when: icinga_host in ansible_play_hosts
when: >-
( icinga_host in ansible_play_hosts ) or
( ( groups['icinga_remote_nodes'] is defined ) and
( groups['icinga_remote_nodes'] != [] ) and
( icinga_host in groups['icinga_remote_nodes'] ) )
# TODO
# - name: Check that agent node hosts are connected
......
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