aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-03-16 20:46:00 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2022-03-16 20:46:00 +0300
commit56ed7fe042f2177342f83d13fa4a00419e813a4e (patch)
tree43fa05d6e99bb485a4d020da8ca77be48c469816
parentadd ansible.cfg (diff)
downloadmaintenance-56ed7fe042f2177342f83d13fa4a00419e813a4e.tar.gz
maintenance-56ed7fe042f2177342f83d13fa4a00419e813a4e.zip
add requirements.yml
-rw-r--r--Makefile4
-rw-r--r--requirements.yml8
2 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f1d073f..9e0d21b 100644
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,10 @@ $(eval $(call noexpand,limit))
.PHONY: all
all: run
+.PHONY: deps
+deps:
+ ansible-galaxy collection install -r requirements.yml
+
.PHONY: run
run:
ansible-playbook --inventory inventory.ini --limit '$(call escape,$(limit))' maintenance.yml
diff --git a/requirements.yml b/requirements.yml
new file mode 100644
index 0000000..1b17a8a
--- /dev/null
+++ b/requirements.yml
@@ -0,0 +1,8 @@
+---
+collections:
+ # Apparently, Pacman developers thought it was a good idea to change the flag
+ # --sys-upgrade to --sysupgrade, which was incredibly bright on their part.
+ # Even if my reasonably up-to-date Ansible doesn't carry the fix:
+ # https://github.com/ansible-collections/community.general/commit/b9f62bb4ef7808c0220d154c10c1c846f7c3361e
+ - name: community.general
+ version: 4.6.0