From fe8c716c4f28c55f2698798422b35e483259a0c4 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 2 Mar 2023 00:30:20 +0100 Subject: Makefile: add recipe for reboot/cloud --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c02d3b0..717ee34 100644 --- a/Makefile +++ b/Makefile @@ -20,10 +20,11 @@ ifeq ($$(origin $(1)),command line) endif endef +.SECONDEXPANSION: + LIMIT ?= all -$(eval $(call noexpand,LIMIT)) -args := --inventory inventory.ini --limit '$(call escape,$(LIMIT))' +args := --inventory inventory.ini --limit '$(LIMIT)' .PHONY: all all: run @@ -40,3 +41,7 @@ run: reboot: ansible $(args) --become -m reboot '*' ansible $(args) -m wait_for_connection '*' + +.PHONY: reboot/cloud +reboot/cloud: LIMIT := cloud +reboot/cloud: run -- cgit v1.2.3