fix incorrect downloaded archive filemode

main
Guido Grazioli 2022-05-11 10:38:52 +02:00
parent 95c346d4b3
commit 3b45c133b8
No known key found for this signature in database
GPG Key ID: 22C8C31EF2BC093B
1 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@
ansible.builtin.get_url: # noqa risky-file-permissions delegated, uses controller host user ansible.builtin.get_url: # noqa risky-file-permissions delegated, uses controller host user
url: "{{ keycloak_download_url }}" url: "{{ keycloak_download_url }}"
dest: "{{ local_path.stat.path }}/{{ keycloak.bundle }}" dest: "{{ local_path.stat.path }}/{{ keycloak.bundle }}"
mode: 0640 mode: 0644
delegate_to: localhost delegate_to: localhost
when: when:
- archive_path is defined - archive_path is defined
@ -103,7 +103,7 @@
ansible.builtin.get_url: # noqa risky-file-permissions delegated, uses controller host user ansible.builtin.get_url: # noqa risky-file-permissions delegated, uses controller host user
url: "{{ keycloak_rhsso_download_url }}" url: "{{ keycloak_rhsso_download_url }}"
dest: "{{ local_path.stat.path }}/{{ keycloak.bundle }}" dest: "{{ local_path.stat.path }}/{{ keycloak.bundle }}"
mode: 0640 mode: 0644
delegate_to: localhost delegate_to: localhost
when: when:
- archive_path is defined - archive_path is defined
@ -126,7 +126,7 @@
dest: "{{ archive }}" dest: "{{ archive }}"
owner: "{{ keycloak_service_user }}" owner: "{{ keycloak_service_user }}"
group: "{{ keycloak_service_group }}" group: "{{ keycloak_service_group }}"
mode: 0750 mode: 0640
register: new_version_downloaded register: new_version_downloaded
when: when:
- not archive_path.stat.exists - not archive_path.stat.exists