summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMatthew Fennell <matthew@fennell.dev>2026-09-09 21:12:42 +0100
committerMatthew Fennell <matthew@fennell.dev>2026-09-09 21:17:38 +0100
commit4c5207339421379f79b40d28ee132f0daf6ae619 (patch)
tree88612ef3b1fd39dcb9c062e729513c185762c5bb /Makefile
parentfcbf8dfb52bc249450af28a111829d1fc59eac1f (diff)
Add install task to Makefile
In ~/.ansible.cfg, I include /usr/local/share/ansible/roles in roles_path so that playbooks can find roles from there. Add the corresponding install tasks to the Makefile.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b5c97a8..6e84119 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,18 @@
#
# SPDX-License-Identifier: AGPL-3.0-or-later
-.PHONY: lint
+.PHONY: all lint install
+
+INSTALL_DIR = /usr/local/share/ansible/roles/bootstrap
+
+all:
+ make lint
+ sudo make install
lint:
precious --ascii lint --all
+
+install:
+ rm -rf $(INSTALL_DIR)
+ mkdir -p $(INSTALL_DIR)
+ cp -r defaults files handlers tasks templates $(INSTALL_DIR)