aboutsummaryrefslogtreecommitdiffstats
path: root/installation/ansible-server
diff options
context:
space:
mode:
Diffstat (limited to 'installation/ansible-server')
-rw-r--r--installation/ansible-server/src/main/Playbooks/ansible_huawei_activatenesw@0.00.yml10
-rw-r--r--installation/ansible-server/src/main/Playbooks/ansible_huawei_downloadnesw@0.00.yml12
2 files changed, 11 insertions, 11 deletions
diff --git a/installation/ansible-server/src/main/Playbooks/ansible_huawei_activatenesw@0.00.yml b/installation/ansible-server/src/main/Playbooks/ansible_huawei_activatenesw@0.00.yml
index bee98aa7..e25d2e61 100644
--- a/installation/ansible-server/src/main/Playbooks/ansible_huawei_activatenesw@0.00.yml
+++ b/installation/ansible-server/src/main/Playbooks/ansible_huawei_activatenesw@0.00.yml
@@ -2,16 +2,16 @@
- hosts: all
tasks:
- - name: parameter neIdentifier
- set_fact:
- ne_identifier: "{{neIdentifier}}"
- when: neIdentifier is defined
-
- name: parameter swVersionToBeActivated
set_fact:
sw_version_to_be_activated: "{{swVersionToBeActivated}}"
when: swVersionToBeActivated is defined
+ - name: parameter neIdentifier
+ set_fact:
+ ne_identifier: "{{neIdentifier}}"
+ when: neIdentifier is defined
+
- name: compatible with parameter pnfId
set_fact:
ne_identifier: "{{pnfId}}"
diff --git a/installation/ansible-server/src/main/Playbooks/ansible_huawei_downloadnesw@0.00.yml b/installation/ansible-server/src/main/Playbooks/ansible_huawei_downloadnesw@0.00.yml
index 77bc21b3..10e25b34 100644
--- a/installation/ansible-server/src/main/Playbooks/ansible_huawei_downloadnesw@0.00.yml
+++ b/installation/ansible-server/src/main/Playbooks/ansible_huawei_downloadnesw@0.00.yml
@@ -2,23 +2,23 @@
- hosts: all
tasks:
- - name: parameter neIdentifier
- set_fact:
- ne_identifier: "{{neIdentifier}}"
- when: neIdentifier is defined
-
- name: parameter swToBeDownloaded
set_fact:
sw_to_be_downloaded: "{{swToBeDownloaded}}"
when: swToBeDownloaded is defined
+ - name: parameter neIdentifier
+ set_fact:
+ ne_identifier: "{{neIdentifier}}"
+ when: neIdentifier is defined
+
- name: compatible with parameter pnfId
set_fact:
ne_identifier: "{{pnfId}}"
when: neIdentifier is not defined and pnfId is defined
- name: execute downloadNESw operation
- shell: ./swm/downloadNESw --neIdentifier {{ne_identifier}} --swToBeDownloaded {{sw_to_be_downloaded}}
+ shell: ./swm/downloadNESw --swToBeDownloaded {{sw_to_be_downloaded}} --neIdentifier {{ne_identifier}}
ignore_errors: yes
register: download_result