From 588fc57e8dac1612cc5d97777a2ecf458a68ff51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathieu=20Dupr=C3=A9?= Date: Tue, 30 May 2023 10:55:36 +0200 Subject: [PATCH] playbooks: fix ansible-lint error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mathieu Dupré --- playbooks/ci_restart_machines.yaml | 2 +- playbooks/ci_start_machine.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/playbooks/ci_restart_machines.yaml b/playbooks/ci_restart_machines.yaml index 2f62ecafe..1f862a0d4 100644 --- a/playbooks/ci_restart_machines.yaml +++ b/playbooks/ci_restart_machines.yaml @@ -17,7 +17,7 @@ include_tasks: tasks/restart_machine.yaml - name: Wait all cluster machines have finish to boot - hosts: "{{ machines }}" + hosts: "{{ machines |default('cluster_machines') }}" gather_facts: false tasks: - name: Wait for machine to be online diff --git a/playbooks/ci_start_machine.yaml b/playbooks/ci_start_machine.yaml index 22a518be3..a8f4c7425 100644 --- a/playbooks/ci_start_machine.yaml +++ b/playbooks/ci_start_machine.yaml @@ -11,8 +11,8 @@ - include_tasks: tasks/start_machine.yaml with_items: "{{ hostvars[machine_to_start]['plug_port'] }}" -- name: "Wait {{ machine_to_start }} has booted" - hosts: "{{ machine_to_start }}" +- name: "Wait machines has booted" + hosts: "{{ machine_to_start | default('cluster_machines') }}" gather_facts: false tasks: - name: Wait for machine to be online