diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-03-02 00:05:45 +0100 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-03-02 00:05:45 +0100 |
commit | b27412c5d3d0080f9f9001b7e576a00fa39e5488 (patch) | |
tree | 203284eeb37e06f354f3ce7feaa1fcd8ed983f93 /Makefile | |
parent | inventory: update web port (diff) | |
download | maintenance-b27412c5d3d0080f9f9001b7e576a00fa39e5488.tar.gz maintenance-b27412c5d3d0080f9f9001b7e576a00fa39e5488.zip |
Makefile: add reboot recipe
Diffstat (limited to '')
-rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -23,6 +23,8 @@ endef limit ?= all $(eval $(call noexpand,limit)) +args := --inventory inventory.ini --limit '$(call escape,$(limit))' + .PHONY: all all: run @@ -32,4 +34,9 @@ deps: .PHONY: run run: - ansible-playbook --inventory inventory.ini --limit '$(call escape,$(limit))' maintenance.yml + ansible-playbook $(args) maintenance.yml + +.PHONY: reboot +reboot: + ansible $(args) --become -m reboot '*' + ansible $(args) -m wait_for_connection '*' |