diff --git a/Ansible/ansible_collections/jfrog/platform/roles/artifactory/shared/ensure_permissions_correct.yml b/Ansible/ansible_collections/jfrog/platform/roles/artifactory/shared/ensure_permissions_correct.yml deleted file mode 100644 index 24cc703a..00000000 --- a/Ansible/ansible_collections/jfrog/platform/roles/artifactory/shared/ensure_permissions_correct.yml +++ /dev/null @@ -1,12 +0,0 @@ -- name: Ensure permissions are correct - become: true - block: - - name: Ensure user ownership - ansible.builtin.command: find {{ jfrog_home_directory }} ! -user {{ artifactory_user }} -print -exec chown {{ artifactory_user }} {} \; - register: user_ownerships - changed_when: user_ownerships.stdout_lines | length > 0 - - - name: Ensure group ownership - ansible.builtin.command: find {{ jfrog_home_directory }} ! -group {{ artifactory_group }} -print -exec chgrp {{ artifactory_group }} {} \; - register: group_ownerships - changed_when: user_ownerships.stdout_lines | length > 0 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 deleted file mode 100644 index 33485b8b..00000000 --- a/Ansible/ansible_collections/jfrog/platform/roles/artifactory/shared/install_service.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -- name: Create artifactory service - become: true - ansible.builtin.command: "{{ artifactory_home }}/app/bin/installService.sh" - notify: Restart artifactory \ No newline at end of file diff --git a/Ansible/ansible_collections/jfrog/platform/roles/artifactory/shared/selinux_configure_context.yml b/Ansible/ansible_collections/jfrog/platform/roles/artifactory/shared/selinux_configure_context.yml deleted file mode 100644 index 431b3e56..00000000 --- a/Ansible/ansible_collections/jfrog/platform/roles/artifactory/shared/selinux_configure_context.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Configure SELinux context - become: true - community.general.sefcontext: - target: "{{ jfrog_home_directory }}/artifactory/app/bin(/.*)?" - setype: bin_t - state: present - when: ansible_selinux.status == 'enabled' diff --git a/Ansible/ansible_collections/jfrog/platform/roles/artifactory/shared/selinux_restore_context.yml b/Ansible/ansible_collections/jfrog/platform/roles/artifactory/shared/selinux_restore_context.yml deleted file mode 100644 index 19e6eabe..00000000 --- a/Ansible/ansible_collections/jfrog/platform/roles/artifactory/shared/selinux_restore_context.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -- name: Restore SELinux content - become: true - ansible.builtin.command: restorecon -R -v "{{ jfrog_home_directory }}/artifactory/app/bin" - when: ansible_os_family == 'RedHat' - changed_when: false