diff --git a/molecule/default/converge.yml b/molecule/default/converge.yml index cb0bd80..320ebbe 100644 --- a/molecule/default/converge.yml +++ b/molecule/default/converge.yml @@ -45,7 +45,7 @@ pre_tasks: - name: Install en_US.UTF-8 locale ansible.builtin.yum: - name: langpacks-en + name: glibc-langpack-en state: present when: ansible_distribution == 'Rocky' - name: Set locale to en_US.UTF-8 diff --git a/tasks/RedHat_post.yml b/tasks/RedHat_post.yml new file mode 100644 index 0000000..bf59c4a --- /dev/null +++ b/tasks/RedHat_post.yml @@ -0,0 +1,28 @@ +--- +- name: Initialize onlyoffice-documentserver (non free package) + ansible.builtin.shell: | + set -o pipefail + echo -e "{{ db_server_host }}\n{{ db_server_name }}\n{{ db_server_user }}\n{{ db_server_pass }}\n{{ redis_server_host }}\n{{ rabbitmq_server_host }}\n{{ rabbitmq_server_user }}\n{{ rabbitmq_server_pass }}" | bash documentserver-configure.sh + environment: + CLUSTER_MODE: "{{ cluster_mode }}" + JWT_ENABLED: "{{ jwt_enabled }}" + JWT_SECRET: "{{ jwt_secret }}" + JWT_HEADER: "{{ jwt_header }}" + when: is_nonfree_package | bool + +- name: Initialize onlyoffice-documentserver (free package) + ansible.builtin.shell: | + set -o pipefail + echo -e "{{ db_server_host }}\n{{ db_server_name }}\n{{ db_server_user }}\n{{ db_server_pass }}\n{{ rabbitmq_server_host }}\n{{ rabbitmq_server_user }}\n{{ rabbitmq_server_pass }}" | bash documentserver-configure.sh + environment: + CLUSTER_MODE: "{{ cluster_mode }}" + JWT_ENABLED: "{{ jwt_enabled }}" + JWT_SECRET: "{{ jwt_secret }}" + JWT_HEADER: "{{ jwt_header }}" + when: not is_nonfree_package | bool + +- name: Start example service + ansible.builtin.systemd: + name: ds-example + state: started + when: start_example | bool