deploy_root.yml
832 Bytes
---
- hosts: deployed-wdchat-dma, deploy-wdchat-dma-single-host
become: true
tasks:
- name: Copy root
command: cp /tmp/source/root.tar.gz /root/root.tar.gz
- name: Extract root
command: tar -zxvf /root/root.tar.gz -C /root/
- name: Delete File
command: rm /root/root.tar.gz
- name: Gen License Request File
command: /root/bin/gen_license_request.py
args:
chdir: /root/bin
- name: Gen License File
command: /root/bin/gen_license.py /root/bin/request_license.txt /root/bin/license
- name: Activate License
command: cp /root/bin/license.enc /opt/iConsole/security/wdchat.license
- name: Delete request_license.txt File
command: rm /root/bin/request_license.txt
- name: Delete license.enc File
command: rm /root/bin/license.enc