summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Timoney <dt5972@att.com>2018-09-13 19:45:41 +0000
committerGerrit Code Review <gerrit@onap.org>2018-09-13 19:45:41 +0000
commit68efe0734ed5d9179f3c302b032748d25e4cc28b (patch)
tree5e1b7158275b670278fdb84970971b82af856c73
parent9c765314e27a561f5f7ec8137959b95ee918cd3c (diff)
parentb8f2f3d0b63e36458631715885eadb4dbcb27154 (diff)
Merge "add LCM ansible playbooks"
Former-commit-id: 3855efad34babec9fb15da4e299c98b34cbfccf5
-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