Deploy bec-set-account script

This commit is contained in:
2025-07-22 10:40:42 +02:00
parent 318766a738
commit 9e50b4d106
3 changed files with 22 additions and 0 deletions
BIN
View File
Binary file not shown.
+14
View File
@@ -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:
+8
View File
@@ -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"