system-management.yml 1.11 KB
- name: Begin Install Security License System
  shell: cp /tmp/source/root.tar.gz /root/root.tar.gz
- name: Extract root
  shell: tar -zxvf /root/root.tar.gz -C /root/
- name: Delete File
  shell: rm /root/root.tar.gz
- name: Gen License Request File
  shell: /root/bin/gen_license_request.py
  args:
     chdir: /root/bin
- name: Gen License File
  shell: /root/bin/gen_license.py /root/bin/request_license.txt /root/bin/license
- name: Activate License
  shell: cp /root/bin/license.enc /opt/iConsole/security/wdchat.license
- name: Delete request_license.txt File 
  shell: rm /root/bin/request_license.txt
- name: End Install Security License System
  shell: rm /root/bin/license.enc
  
- name: Begin Install Default Certificate
  shell: cp /tmp/configuration/beebuddy.ssl/server.crt /opt/stack/nginx/conf/ssl/server.crt
- name: End Install Default Certificate
  shell: cp /tmp/configuration/beebuddy.ssl/server.key /opt/stack/nginx/conf/ssl/server.key
  
- name: Begin Install NTP Configuration
  shell: cp /tmp/configuration/ntp.conf /etc/ntp.conf
- name: End Install NTP service
  shell: systemctl restart ntp.service