Skip to content

Commit

Permalink
Merge pull request #191 from guidograzioli/190_sysconfig_worldreadable
Browse files Browse the repository at this point in the history
Unrelax configuration file permissions
  • Loading branch information
guidograzioli authored Apr 17, 2024
2 parents 4ba9014 + 1229a0b commit 05ebd90
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions roles/keycloak_quarkus/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
state: directory
owner: "{{ keycloak.service_user }}"
group: "{{ keycloak.service_group }}"
mode: 0750
mode: '0750'

## check remote archive
- name: Set download archive path
Expand All @@ -56,7 +56,7 @@
ansible.builtin.get_url: # noqa risky-file-permissions delegated, uses controller host user
url: "{{ keycloak_quarkus_download_url }}"
dest: "{{ local_path.stat.path }}/{{ keycloak.bundle }}"
mode: 0640
mode: '0640'
delegate_to: localhost
become: false
run_once: true
Expand Down Expand Up @@ -118,7 +118,7 @@
dest: "{{ archive }}"
owner: "{{ keycloak.service_user }}"
group: "{{ keycloak.service_group }}"
mode: 0640
mode: '0640'
register: new_version_downloaded
when:
- not archive_path.stat.exists
Expand Down
2 changes: 1 addition & 1 deletion roles/keycloak_quarkus/tasks/jdbc_driver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
dest: "{{ keycloak.home }}/providers"
owner: "{{ keycloak.service_user }}"
group: "{{ keycloak.service_group }}"
mode: 0640
mode: '0640'
become: true
notify:
- restart keycloak
8 changes: 4 additions & 4 deletions roles/keycloak_quarkus/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
dest: "{{ keycloak.home }}/conf/keycloak.conf"
owner: "{{ keycloak.service_user }}"
group: "{{ keycloak.service_group }}"
mode: 0644
mode: '0640'
become: true
notify:
- rebuild keycloak config
Expand All @@ -39,7 +39,7 @@
dest: "{{ keycloak.home }}/conf/quarkus.properties"
owner: "{{ keycloak.service_user }}"
group: "{{ keycloak.service_group }}"
mode: 0644
mode: '0640'
become: true
notify:
- restart keycloak
Expand All @@ -64,7 +64,7 @@
dest: "{{ keycloak.home }}/conf/cache-ispn.xml"
owner: "{{ keycloak.service_user }}"
group: "{{ keycloak.service_group }}"
mode: 0644
mode: '0640'
become: true
notify:
- rebuild keycloak config
Expand All @@ -76,7 +76,7 @@
path: "{{ keycloak.log.file | dirname }}"
owner: "{{ keycloak.service_user }}"
group: "{{ keycloak.service_group }}"
mode: 0775
mode: '0775'
become: true

- name: Flush pending handlers
Expand Down
4 changes: 2 additions & 2 deletions roles/keycloak_quarkus/tasks/systemd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
dest: "{{ keycloak_quarkus_sysconf_file }}"
owner: root
group: root
mode: 0644
mode: '0640'
vars:
keycloak_pkg_java_home: "{{ keycloak_quarkus_pkg_java_home }}"
notify:
Expand All @@ -18,7 +18,7 @@
dest: /etc/systemd/system/keycloak.service
owner: root
group: root
mode: 0644
mode: '0644'
become: true
register: systemdunit
notify:
Expand Down

0 comments on commit 05ebd90

Please sign in to comment.