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/wti/remote/playbooks/cpm_firmwareupdate | |
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/wti/remote/playbooks/cpm_firmwareupdate')
-rw-r--r-- | ansible_collections/wti/remote/playbooks/cpm_firmwareupdate/firmware_upgrade.yml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/ansible_collections/wti/remote/playbooks/cpm_firmwareupdate/firmware_upgrade.yml b/ansible_collections/wti/remote/playbooks/cpm_firmwareupdate/firmware_upgrade.yml new file mode 100644 index 000000000..7fa155cdb --- /dev/null +++ b/ansible_collections/wti/remote/playbooks/cpm_firmwareupdate/firmware_upgrade.yml @@ -0,0 +1,29 @@ +# ansible-playbook ./firmware_upgrade.yml +- name: Upgrade WTI Device + hosts: "{{ansible_hosts}}" # pass as -e ansible_hosts=wti_demo on the commandline + collections: + - wti.remote + connection: local + gather_facts: False + + tasks: + - set_fact: use_https=False + when: use_https is undefined + - set_fact: validate_certs=False + when: validate_certs is undefined + + - name: upgrade WTI device checking online for new version + cpm_firmware_update: + cpm_url: "{{ansible_host}}" + cpm_username: "{{ansible_user}}" + cpm_password: "{{ansible_pw}}" + use_https: "{{use_https}}" + validate_certs: "{{validate_certs}}" + cpm_path: "/tmp/" + # when cpm_file is missing, the playbook will look online for the latest version + # cpm_file: "uimage_3352_tsm_arm.md5" + # cpm_file: "uimage_3352_128512_vmr_v2.15.md5" + register: testout + - name: dump test output + debug: + msg: "{{ testout['data'] }}" |