From a73c73c52f0f037fa7a17a8b1e20ad4ea9910c5f Mon Sep 17 00:00:00 2001 From: "taha@asks2" Date: Wed, 29 May 2024 21:04:54 +0200 Subject: [PATCH] Test role swap (forgot to add the submodule) --- .gitmodules | 3 +++ README.md | 5 +++++ roles/swap | 1 + 3 files changed, 9 insertions(+) create mode 160000 roles/swap diff --git a/.gitmodules b/.gitmodules index 9334633..aa7d96a 100644 --- a/.gitmodules +++ b/.gitmodules @@ -13,3 +13,6 @@ [submodule "roles/ssh"] path = roles/ssh url = https://codeberg.org/ansible/ssh.git +[submodule "roles/swap"] + path = roles/swap + url = https://codeberg.org/ansible/swap.git diff --git a/README.md b/README.md index d509ca2..df7b66b 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,11 @@ using this playbook), and desk`top`. ### Working with roles (git submodules) +Add a new role as a git submodule (standing in the playbook root): +``` +$ git submodule add https://codeberg.org/ansible/dotfiles.git roles/dotfiles +``` + Update all the roles from their respective remotes: ``` $ git submodule foreach git fetch diff --git a/roles/swap b/roles/swap new file mode 160000 index 0000000..90a04b6 --- /dev/null +++ b/roles/swap @@ -0,0 +1 @@ +Subproject commit 90a04b68bdcfcfd7da947d7a68f98dcaca5fb098