summaryrefslogtreecommitdiffstats
path: root/ansible_collections/dellemc/enterprise_sonic/rebuild.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 16:03:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 16:03:42 +0000
commit66cec45960ce1d9c794e9399de15c138acb18aed (patch)
tree59cd19d69e9d56b7989b080da7c20ef1a3fe2a5a /ansible_collections/dellemc/enterprise_sonic/rebuild.sh
parentInitial commit. (diff)
downloadansible-66cec45960ce1d9c794e9399de15c138acb18aed.tar.xz
ansible-66cec45960ce1d9c794e9399de15c138acb18aed.zip
Adding upstream version 7.3.0+dfsg.upstream/7.3.0+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/dellemc/enterprise_sonic/rebuild.sh')
-rwxr-xr-xansible_collections/dellemc/enterprise_sonic/rebuild.sh22
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 00000000..0e17e52b
--- /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