remove unneeded tasks; adjust some variables

This commit is contained in:
Lee Goolsbee
2024-03-25 14:38:23 -05:00
parent c610d975ca
commit d58d02f1f6
2 changed files with 6 additions and 69 deletions

View File

@@ -1,20 +1,11 @@
--- ---
# the owner/group on the unarchive above isn't thorough - name: Touch the JMX password file
- name: adjust permissions on the extracted directory
ansible.builtin.file:
state: directory
path: "/opt/atlassian/mesh/atlassian-bitbucket-mesh-{{ atl_product_version }}"
owner: "{{ atl_product_user }}"
group: "{{ atl_product_user }}"
recurse: yes
- name: touch the jmx password file
ansible.builtin.file: ansible.builtin.file:
path: "{{ atl_home_base }}/{{ atl_product_edition }}/jmx.access" path: "{{ atl_home_base }}/{{ atl_product_edition }}/jmx.access"
state: touch state: touch
owner: "{{ atl_product_user_uid }}" owner: "{{ atl_product_user }}"
group: "{{ atl_product_user_uid }}" group: "{{ atl_product_user }}"
mode: 0600 mode: 0600
# assume bbdc secret exists (else fail) - setup stuff for calling bitbucket rest api and get mesh node report # assume bbdc secret exists (else fail) - setup stuff for calling bitbucket rest api and get mesh node report

View File

@@ -1,5 +1,5 @@
--- ---
- name: Create Bitbucket dirs if necessary - name: Create additional Bitbucket dirs if necessary
ansible.builtin.file: ansible.builtin.file:
path: "{{ item }}" path: "{{ item }}"
owner: "{{ atl_product_user }}" owner: "{{ atl_product_user }}"
@@ -8,66 +8,12 @@
state: directory state: directory
recurse: no recurse: no
with_items: with_items:
- "{{ atl_home_base }}/{{ atl_product_edition }}"
- "{{ mesh_install_dir }}"
- "{{ atl_product_home }}"
- "{{ atl_product_home }}/caches" - "{{ atl_product_home }}/caches"
- "{{ atl_product_home }}/log" - "{{ atl_product_home }}/log"
# - name: download the mesh distribution using maven - name: Enforce the permissions on the pem files
# community.general.maven_artifact:
# group_id: "com.atlassian.bitbucket.mesh"
# artifact_id: "mesh-distribution"
# extension: "tar.gz"
# version: "{{ atl_product_version }}"
# repository_url: "{{ bitbucket_mesh_maven_repo }}"
# dest: "{{ downloads_dir }}"
# keep_name: yes
# mode: "0644"
# owner: "{{ atl_product_user }}"
# group: "{{ atl_product_user }}"
# register: maven_download
# - name: extract the downloaded artifact # noqa no-handler
# ansible.builtin.unarchive:
# src: "{{ maven_download.dest }}"
# dest: "/opt/atlassian/mesh/"
# creates: "/opt/atlassian/mesh/atlassian-bitbucket-mesh-{{ atl_product_version }}"
# mode: 0755
# owner: "{{ atl_product_user }}"
# group: "{{ atl_product_user }}"
# register: mesh_extract
# when:
# - maven_download.changed | bool
# the owner/group on the unarchive above isn't thorough
- name: adjust permissions on the extracted directory
ansible.builtin.file: ansible.builtin.file:
state: directory path: "{{ atl_product_home }}/config/{{ item }}"
path: "/opt/atlassian/mesh/atlassian-bitbucket-mesh-{{ atl_product_version }}"
owner: "{{ atl_product_user }}"
group: "{{ atl_product_user }}"
recurse: yes
# - name: symlink to the current version # noqa no-handler
# ansible.builtin.file:
# src: "/opt/atlassian/mesh/atlassian-bitbucket-mesh-{{ atl_product_version }}"
# dest: "/opt/atlassian/mesh/current"
# state: link
# when:
# - mesh_extract.changed | bool
- name: touch the jmx password file
ansible.builtin.file:
path: "{{ atl_home_base }}/{{ atl_product_edition }}/jmx.access"
state: touch
owner: "{{ atl_product_user }}"
group: "{{ atl_product_user }}"
mode: 0600
- name: enforce the permissions on the pem files
ansible.builtin.file:
path: "{{ atl_home_base }}/{{ atl_product_edition }}/config/{{ item }}"
state: touch state: touch
owner: "{{ atl_product_user }}" owner: "{{ atl_product_user }}"
group: "{{ atl_product_user }}" group: "{{ atl_product_user }}"