summaryrefslogtreecommitdiffstats
path: root/installation/ansible-server/src/main/yml
diff options
context:
space:
mode:
Diffstat (limited to 'installation/ansible-server/src/main/yml')
-rwxr-xr-xinstallation/ansible-server/src/main/yml/ansible_postcheck_jq@0.00.yml10
-rwxr-xr-xinstallation/ansible-server/src/main/yml/ansible_precheck_jq@0.00.yml10
-rwxr-xr-xinstallation/ansible-server/src/main/yml/ansible_quiescetraffic@0.00.yml6
-rwxr-xr-xinstallation/ansible-server/src/main/yml/ansible_resumetraffic@0.00.yml6
-rwxr-xr-xinstallation/ansible-server/src/main/yml/ansible_upgradesw_insjq@0.00.yml9
-rwxr-xr-xinstallation/ansible-server/src/main/yml/ansible_upgradesw_remjq@0.00.yml9
6 files changed, 50 insertions, 0 deletions
diff --git a/installation/ansible-server/src/main/yml/ansible_postcheck_jq@0.00.yml b/installation/ansible-server/src/main/yml/ansible_postcheck_jq@0.00.yml
new file mode 100755
index 00000000..18d20edf
--- /dev/null
+++ b/installation/ansible-server/src/main/yml/ansible_postcheck_jq@0.00.yml
@@ -0,0 +1,10 @@
+---
+- hosts: all
+ tasks:
+ - name: check jq is not installed
+ stat:
+ path: /usr/bin/jq
+ register: abc
+ - fail:
+ msg: "jq is not installed"
+ when: abc.stat.exists == false
diff --git a/installation/ansible-server/src/main/yml/ansible_precheck_jq@0.00.yml b/installation/ansible-server/src/main/yml/ansible_precheck_jq@0.00.yml
new file mode 100755
index 00000000..00470807
--- /dev/null
+++ b/installation/ansible-server/src/main/yml/ansible_precheck_jq@0.00.yml
@@ -0,0 +1,10 @@
+---
+- hosts: all
+ tasks:
+ - name: check jq is not installed
+ stat:
+ path: /usr/bin/jq
+ register: abc
+ - fail:
+ msg: "jq is already installed"
+ when: abc.stat.exists == true
diff --git a/installation/ansible-server/src/main/yml/ansible_quiescetraffic@0.00.yml b/installation/ansible-server/src/main/yml/ansible_quiescetraffic@0.00.yml
new file mode 100755
index 00000000..000bc488
--- /dev/null
+++ b/installation/ansible-server/src/main/yml/ansible_quiescetraffic@0.00.yml
@@ -0,0 +1,6 @@
+---
+- hosts: all
+ tasks:
+ - name: Set vG to vG-MUX interface down
+ shell: vppctl set int state GigabitEthernet0/4/0 down
+ become: true
diff --git a/installation/ansible-server/src/main/yml/ansible_resumetraffic@0.00.yml b/installation/ansible-server/src/main/yml/ansible_resumetraffic@0.00.yml
new file mode 100755
index 00000000..32ebfc94
--- /dev/null
+++ b/installation/ansible-server/src/main/yml/ansible_resumetraffic@0.00.yml
@@ -0,0 +1,6 @@
+---
+- hosts: all
+ tasks:
+ - name: Set vG to vG-MUX interface up
+ shell: vppctl set int state GigabitEthernet0/4/0 up
+ become: true
diff --git a/installation/ansible-server/src/main/yml/ansible_upgradesw_insjq@0.00.yml b/installation/ansible-server/src/main/yml/ansible_upgradesw_insjq@0.00.yml
new file mode 100755
index 00000000..ec1d2de6
--- /dev/null
+++ b/installation/ansible-server/src/main/yml/ansible_upgradesw_insjq@0.00.yml
@@ -0,0 +1,9 @@
+---
+- hosts: all
+ tasks:
+ - name: install jq package
+ apt:
+ name: jq
+ state: latest
+ update_cache: yes
+ become: true
diff --git a/installation/ansible-server/src/main/yml/ansible_upgradesw_remjq@0.00.yml b/installation/ansible-server/src/main/yml/ansible_upgradesw_remjq@0.00.yml
new file mode 100755
index 00000000..c5be6330
--- /dev/null
+++ b/installation/ansible-server/src/main/yml/ansible_upgradesw_remjq@0.00.yml
@@ -0,0 +1,9 @@
+---
+- hosts: all
+ tasks:
+ - name: remove jq package
+ apt:
+ name: jq
+ state: absent
+ update_cache: yes
+ become: true