aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-03-02 00:30:20 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-03-02 00:30:20 +0100
commitfe8c716c4f28c55f2698798422b35e483259a0c4 (patch)
tree901dde1db8f943d805c3b06d778d4a0471342857 /Makefile
parentworkflows/run: change the default param value (diff)
downloadmaintenance-fe8c716c4f28c55f2698798422b35e483259a0c4.tar.gz
maintenance-fe8c716c4f28c55f2698798422b35e483259a0c4.zip
Makefile: add recipe for reboot/cloud
Diffstat (limited to '')
-rw-r--r--Makefile9
1 files 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