storage api python service templated and port added to jenkinsfile
This commit is contained in:
@ -1,5 +1,15 @@
|
||||
---
|
||||
|
||||
- name: Copy CrystalDiskInfo archive
|
||||
ansible.windows.win_copy:
|
||||
src: /var/jenkins_home/ansible-files/programs/CrystalDiskInfo.zip
|
||||
dest: "{{ storage_api_root }}\\CrystalDiskInfo.zip"
|
||||
|
||||
- name: Extract CrystalDiskInfo archive
|
||||
community.windows.win_unzip:
|
||||
src: "{{ storage_api_root }}\\CrystalDiskInfo.zip"
|
||||
dest: "{{ storage_api_root }}\\dist\\"
|
||||
|
||||
- name: Install nssm
|
||||
win_chocolatey:
|
||||
name: nssm
|
||||
@ -20,6 +30,20 @@
|
||||
- name: Show service result
|
||||
debug:
|
||||
msg:
|
||||
- "{{ disk_service_status }}"
|
||||
- "name........ {{ disk_service_status.name }}"
|
||||
- "exists...... {{ disk_service_status.exists }}"
|
||||
- "path........ {{ disk_service_status.path }}"
|
||||
- "start_mode.. {{ disk_service_status.start_mode }}"
|
||||
- "state....... {{ disk_service_status.state }}"
|
||||
- "username.... {{ disk_service_status.username }}"
|
||||
- "failed...... {{ disk_service_status.failed }}"
|
||||
|
||||
- name: Test API
|
||||
win_shell: "C:\\Windows\\system32\\curl http://{{ ansible_ssh_host }}:5000/disk"
|
||||
register: api_test_output
|
||||
|
||||
- name: Show Test Results
|
||||
debug:
|
||||
msg: "{{ api_test_output.stdout_lines }}"
|
||||
|
||||
...
|
||||
Reference in New Issue
Block a user