Skip to content

CESNET/perun-ansible-roles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3eb0911 · Feb 25, 2025
Nov 27, 2019
Apr 29, 2022
May 28, 2024
Sep 7, 2022
Nov 14, 2024
Jun 28, 2024
Jan 12, 2025
May 23, 2024
Jul 12, 2023
Apr 20, 2021
Dec 13, 2024
Sep 24, 2024
Sep 23, 2019
Jan 24, 2023
Aug 13, 2024
May 23, 2024
Feb 25, 2025
Jan 10, 2025
Jan 12, 2025
Jan 12, 2025
Nov 22, 2024
Sep 6, 2022
Apr 2, 2024
Jan 12, 2025
Feb 12, 2025
Apr 2, 2024
Sep 6, 2022
Nov 27, 2019
Jun 28, 2023
Oct 8, 2019
Nov 18, 2020
May 5, 2020
Jul 17, 2024
May 28, 2024
Jun 11, 2020
Dec 11, 2020
Jan 12, 2025
Jan 5, 2023

Repository files navigation

perun-ansible-roles

repo with git submodules for roles source code

Add this repo as a submodule for repo with playbook and add it to roles_path:

git submodule add https://github.com/CESNET/perun-ansible-roles.git cesnet_roles 
git submodule update --init --recursive

echo "roles_path=cesnet_roles" >>ansible.cfg

When any of the roles get updated, either update the perun-ansible-roles repo to latest versions of all submodules: (the --remote option of "git submodule update" tells to pull the master branches of the submodules, without it the commits referenced in super-repo are checked out)

git submodule update --init --recursive --remote

or update just the roles that you want to update to specific versions:

git fetch --recurse-submodules --prune
cd cesnet.xxx
git checkout vV.W
cd ..

Then update the main perun-ansible-roles repo:

git commit -a -S -m "updated cesnet.xxx to version V.W"
git tag -a vX.Y -m "updated cesnet.xxx to version V.W"
git push --follow-tags

Then update the repos linking perun-ansible-roles by issuing:

cd repo-with-playbook
cd cesnet_roles
git checkout master
git pull
git submodule update --init --recursive
cd ..
git submodule status --recursive
git status
git add cesnet_roles
git commit -S -m "updated perun-ansible-roles to version X.Y"
git push