diff --git a/Ansible/ansible_collections/jfrog/platform/roles/artifactory/shared/install_service.yml b/Ansible/ansible_collections/jfrog/platform/roles/artifactory/shared/install_service.yml index 33485b8b..6070ee57 100644 --- a/Ansible/ansible_collections/jfrog/platform/roles/artifactory/shared/install_service.yml +++ b/Ansible/ansible_collections/jfrog/platform/roles/artifactory/shared/install_service.yml @@ -1,5 +1,5 @@ --- - name: Create artifactory service become: true - ansible.builtin.command: "{{ artifactory_home }}/app/bin/installService.sh" + ansible.builtin.command: "{{ artifactory_home }}/app/bin/installService.sh {{ artifactory_user }} {{ artifactory_group }}" notify: Restart artifactory \ No newline at end of file diff --git a/Ansible/ansible_collections/jfrog/platform/roles/distribution/defaults/main.yml b/Ansible/ansible_collections/jfrog/platform/roles/distribution/defaults/main.yml index fa11ac38..a89d6705 100644 --- a/Ansible/ansible_collections/jfrog/platform/roles/distribution/defaults/main.yml +++ b/Ansible/ansible_collections/jfrog/platform/roles/distribution/defaults/main.yml @@ -24,7 +24,7 @@ distribution_home: "{{ jfrog_home_directory }}/distribution" distribution_install_script_path: "{{ distribution_home }}/app/bin" distribution_thirdparty_path: "{{ distribution_home }}/app/third-party" -distribution_archive_service_cmd: "{{ distribution_install_script_path }}/installService.sh" +distribution_archive_service_cmd: "{{ distribution_install_script_path }}/installService.sh --user {{ distribution_user }} --group {{ distribution_group }}" distribution_service_file: /lib/systemd/system/distribution.service # distribution users and groups diff --git a/Ansible/ansible_collections/jfrog/platform/roles/insight/defaults/main.yml b/Ansible/ansible_collections/jfrog/platform/roles/insight/defaults/main.yml index f29fcd69..56446f84 100644 --- a/Ansible/ansible_collections/jfrog/platform/roles/insight/defaults/main.yml +++ b/Ansible/ansible_collections/jfrog/platform/roles/insight/defaults/main.yml @@ -24,7 +24,7 @@ insight_home: "{{ jfrog_home_directory }}/insight" insight_install_script_path: "{{ insight_home }}/app/bin" insight_thirdparty_path: "{{ insight_home }}/app/third-party" -insight_archive_service_cmd: "{{ insight_install_script_path }}/installService.sh" +insight_archive_service_cmd: "{{ insight_install_script_path }}/installService.sh --user {{ insight_user }} --group {{ insight_group }}" insight_service_file: /lib/systemd/system/insight.service # Insight users and groups diff --git a/Ansible/ansible_collections/jfrog/platform/roles/xray/defaults/main.yml b/Ansible/ansible_collections/jfrog/platform/roles/xray/defaults/main.yml index b04d6050..2db71ecd 100644 --- a/Ansible/ansible_collections/jfrog/platform/roles/xray/defaults/main.yml +++ b/Ansible/ansible_collections/jfrog/platform/roles/xray/defaults/main.yml @@ -24,7 +24,7 @@ xray_home: "{{ jfrog_home_directory }}/xray" xray_install_script_path: "{{ xray_home }}/app/bin" xray_thirdparty_path: "{{ xray_home }}/app/third-party" -xray_archive_service_cmd: "{{ xray_install_script_path }}/installService.sh" +xray_archive_service_cmd: "{{ xray_install_script_path }}/installService.sh --user {{ xray_user }} --group {{ xray_group }}" xray_service_file: /lib/systemd/system/xray.service # Xray users and groups