diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 12:04:41 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 12:04:41 +0000 |
commit | 975f66f2eebe9dadba04f275774d4ab83f74cf25 (patch) | |
tree | 89bd26a93aaae6a25749145b7e4bca4a1e75b2be /ansible_collections/dellemc/enterprise_sonic/rebuild.sh | |
parent | Initial commit. (diff) | |
download | ansible-975f66f2eebe9dadba04f275774d4ab83f74cf25.tar.xz ansible-975f66f2eebe9dadba04f275774d4ab83f74cf25.zip |
Adding upstream version 7.7.0+dfsg.upstream/7.7.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/dellemc/enterprise_sonic/rebuild.sh')
-rwxr-xr-x | ansible_collections/dellemc/enterprise_sonic/rebuild.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ansible_collections/dellemc/enterprise_sonic/rebuild.sh b/ansible_collections/dellemc/enterprise_sonic/rebuild.sh new file mode 100755 index 000000000..0e17e52bf --- /dev/null +++ b/ansible_collections/dellemc/enterprise_sonic/rebuild.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +namespace=$(grep -w "namespace" galaxy.yml | awk '{print $2}') +name=$(grep -w "name" galaxy.yml | awk '{print $2}') +version=$(grep -w "version" galaxy.yml | awk '{print $2}') +collection_file="$namespace-$name-$version.tar.gz" +#echo "$collection_file" + +rm -f /root/ansible_log.log +rm -rf /root/.ansible/collections/ansible_collections/dellemc/enterprise_sonic +rm "$collection_file" +ansible-galaxy collection build + +ansible-galaxy collection install "$collection_file" --force #-with-deps + +# ansible-playbook -i playbooks/common_examples/hosts playbooks/common_examples/sonic_l3_interfaces.yaml -vvvv +# ansible-playbook -i playbooks/common_examples/hosts playbooks/common_examples/sonic_l3_interfaces_config.yaml -vvvv +# ansible-playbook -i playbooks/common_examples/hosts playbooks/common_examples/sonic_l3_interfaces_test.yaml -vvvv +# ansible-playbook -i playbooks/common_examples/hosts -vvvv playbooks/common_examples/sonic_bgp_extcommunities.yaml -vvvv +# ansible-playbook -i playbooks/common_examples/hosts -vvvv playbooks/common_examples/sonic_bgp_extcommunities_config.yaml -vvv +# ansible-playbook -i playbooks/common_examples/hosts -vvvv playbooks/common_examples/test.yml -vvvv +# ansible-playbook -i playbooks/common_examples/hosts -vvvv playbooks/common_examples/sonic_bgp_as_paths_config.yaml -vvvv |