storage api python service templated and port added to jenkinsfile
This commit is contained in:
@ -1,17 +1,26 @@
|
||||
---
|
||||
|
||||
- name: Create directory structure
|
||||
- name: Create service working folder
|
||||
ansible.windows.win_file:
|
||||
path: "{{ storage_api_root }}"
|
||||
state: directory
|
||||
|
||||
- name: Stop service if running
|
||||
ignore_errors: yes
|
||||
ansible.windows.win_service:
|
||||
name: "{{ disk_service_name }}"
|
||||
state: paused
|
||||
state: stopped
|
||||
|
||||
- name: Check hostname
|
||||
ansible.windows.win_command: hostname
|
||||
register: hostname_output
|
||||
|
||||
- name: display hostname
|
||||
debug:
|
||||
msg: "Hostname: {{ hostname_output.stdout_lines[0] }}"
|
||||
|
||||
- name: Copy disk_service.py
|
||||
ansible.windows.win_copy:
|
||||
ansible.windows.win_template:
|
||||
src: disk_service.py
|
||||
dest: "{{ storage_api_root }}\\disk_service.py"
|
||||
|
||||
@ -35,6 +44,4 @@
|
||||
state: present
|
||||
enabled: true
|
||||
|
||||
|
||||
|
||||
...
|
||||
Reference in New Issue
Block a user