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