diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-03-02 00:30:20 +0100 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-03-02 00:30:20 +0100 |
commit | fe8c716c4f28c55f2698798422b35e483259a0c4 (patch) | |
tree | 901dde1db8f943d805c3b06d778d4a0471342857 /Makefile | |
parent | workflows/run: change the default param value (diff) | |
download | maintenance-fe8c716c4f28c55f2698798422b35e483259a0c4.tar.gz maintenance-fe8c716c4f28c55f2698798422b35e483259a0c4.zip |
Makefile: add recipe for reboot/cloud
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 |