aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-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