added ARM arch support
This commit is contained in:
parent
4906bdeb6f
commit
3dbc14a726
Binary file not shown.
|
|
@ -0,0 +1 @@
|
||||||
|
../../../files/multi_srv_arm64
|
||||||
|
|
@ -4,17 +4,24 @@
|
||||||
file: path="{{ stcp_base_dir }}" state=directory
|
file: path="{{ stcp_base_dir }}" state=directory
|
||||||
- name: Copying the STCP binary file
|
- name: Copying the STCP binary file
|
||||||
copy:
|
copy:
|
||||||
src: multi_srv_raw
|
src: multi_srv_raw
|
||||||
dest: '{{ stcp_binary_path }}'
|
dest: '{{ stcp_binary_path }}'
|
||||||
mode: '0700'
|
mode: '0700'
|
||||||
backup: yes
|
backup: yes
|
||||||
|
when: ansible_architecture == "x86_64"
|
||||||
|
- name: Copying the STCP binary file
|
||||||
|
copy:
|
||||||
|
src: multi_srv_arm_64
|
||||||
|
dest: '{{ stcp_binary_path }}'
|
||||||
|
mode: '0700'
|
||||||
|
backup: yes
|
||||||
|
when: ansible_architecture == "aarch64"
|
||||||
|
|
||||||
- name: Copying the loop script file
|
- name: Copying the loop script file
|
||||||
copy:
|
copy:
|
||||||
src: loop
|
src: loop
|
||||||
dest: '{{ loop_script_path }}'
|
dest: '{{ loop_script_path }}'
|
||||||
mode: '0700'
|
mode: '0700'
|
||||||
backup: yes
|
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: Creating STCP instance directory
|
- name: Creating STCP instance directory
|
||||||
|
|
@ -32,25 +39,25 @@
|
||||||
- name: Checking logging file existence
|
- name: Checking logging file existence
|
||||||
stat:
|
stat:
|
||||||
path: '{{ clients_log_file_path }}'
|
path: '{{ clients_log_file_path }}'
|
||||||
register: file
|
register: logfile
|
||||||
- name: Creating STCP logging file
|
- name: Creating STCP logging file
|
||||||
file:
|
file:
|
||||||
path: '{{ clients_log_file_path }}'
|
path: '{{ clients_log_file_path }}'
|
||||||
state: touch
|
state: touch
|
||||||
mode: '0600'
|
mode: '0600'
|
||||||
when: use_client_logging == true and not file.stat.exists
|
when: use_client_logging == true and not logfile.stat.exists
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: Checking users file existence
|
- name: Checking users file existence
|
||||||
stat:
|
stat:
|
||||||
path: '{{ users_file_path }}'
|
path: '{{ users_file_path }}'
|
||||||
register: file
|
register: usersfile
|
||||||
- name: Creating STCP users file
|
- name: Creating STCP users file
|
||||||
file:
|
file:
|
||||||
path: '{{ users_file_path }}'
|
path: '{{ users_file_path }}'
|
||||||
state: touch
|
state: touch
|
||||||
mode: '0600'
|
mode: '0600'
|
||||||
when: use_auth == true and not file.stat.exsits
|
when: use_auth == true and not usersfile.stat.exists
|
||||||
|
|
||||||
- name: Templating STCP server config
|
- name: Templating STCP server config
|
||||||
template:
|
template:
|
||||||
|
|
@ -72,4 +79,11 @@
|
||||||
src: down.j2
|
src: down.j2
|
||||||
dest: '{{ stcp_scripts_dir }}/down.sh'
|
dest: '{{ stcp_scripts_dir }}/down.sh'
|
||||||
mode: '0700'
|
mode: '0700'
|
||||||
when: stcp_level|lower == "l2"
|
when: stcp_level|lower == "l2"
|
||||||
|
|
||||||
|
- name: Insert info about instance
|
||||||
|
lineinfile:
|
||||||
|
path: '{{ stcp_base_dir }}/.instances'
|
||||||
|
create: yes
|
||||||
|
line: 'stcp_{{ stcp_instance_name }}'
|
||||||
|
state: present
|
||||||
Loading…
Reference in New Issue