forked from cps-deployments/psi.bec
Deploy bec-set-account script
This commit is contained in:
Executable
BIN
Binary file not shown.
@@ -174,6 +174,20 @@
|
||||
state: link
|
||||
when: not ansible_check_mode
|
||||
|
||||
- name: Copy BEC set account binary
|
||||
become_user: "{{ bec_user }}"
|
||||
ansible.builtin.copy:
|
||||
src: bec_set_account
|
||||
dest: "{{ bec_path }}/bec/bin/bec_set_account/bec_set_account"
|
||||
mode: u+x,g=x,o=
|
||||
|
||||
- name: Copy BEC set account script
|
||||
become_user: "{{ bec_user }}"
|
||||
ansible.builtin.template:
|
||||
src: bec-set-account.j2
|
||||
dest: "{{ bec_path }}/bec-set-account"
|
||||
mode: u+x,g=x,o=
|
||||
|
||||
# BEC client-related tasks
|
||||
- name: Add bec startup script
|
||||
ansible.builtin.template:
|
||||
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ $# -ne 1 ]; then
|
||||
echo "Provide exactly one argument: the pgroup name."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exec {{ bec_path }}/bec/bin/bec_set_account/bec_set_account -redis-host {{ ansible_hostname }} -pgroup "$1"
|
||||
Reference in New Issue
Block a user