49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
---
|
|
- name: Copying the STCP binary file
|
|
block:
|
|
- name: Creating "{{ stcp_base_dir }}" directory
|
|
file: path="{{ stcp_base_dir }}" state=directory
|
|
- name: Copying binary
|
|
copy:
|
|
src: multi_srv_raw
|
|
dest: '{{ stcp_binary_path }}'
|
|
mode: '0700'
|
|
|
|
- name: Copying the loop script file
|
|
copy:
|
|
src: loop
|
|
dest: '{{ loop_script_path }}'
|
|
mode: '0700'
|
|
|
|
- name: Creating symlink to the STCP binary file
|
|
block:
|
|
- name: Creating STCP instance directory
|
|
file:
|
|
path: '{{ stcp_instance_dir }}'
|
|
state: directory
|
|
mode: '0600'
|
|
- name: Creating symlink
|
|
file:
|
|
src: '{{ stcp_binary_path }}'
|
|
dest: '{{ stcp_instance_dir }}/multi_srv_raw'
|
|
state: link
|
|
|
|
- name: Creating STCP logging file
|
|
file:
|
|
path: '{{ clients_log_file_path }}'
|
|
state: touch
|
|
mode: '0600'
|
|
when: use_client_logging == true
|
|
|
|
- name: Creating STCP users file
|
|
file:
|
|
path: '{{ users_file_path }}'
|
|
state: touch
|
|
mode: '0600'
|
|
when: use_auth == true
|
|
|
|
- name: Templating STCP server config
|
|
template:
|
|
src: server.ini.j2
|
|
dest: '{{ stcp_instance_dir }}/server.ini'
|
|
mode: '0600' |