Skip to content

Commit f521f4a

Browse files
committed
Prefer symbolic specification of file permissions
1 parent 2098885 commit f521f4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@
3737
live actually exists
3838
ansible.builtin.file:
3939
group: root
40-
mode: 0755
40+
mode: u=rwx,g=rx,o=rx
4141
owner: root
4242
path: "{{ systemd_resolved_dropin_config_file | dirname }}"
4343
state: directory
4444

4545
- name: Set DNSStubListener config value for systemd-resolved
4646
community.general.ini_file:
4747
group: root
48-
mode: 0644
48+
mode: u=rw,g=r,o=r
4949
# This is just to maintain the look and feel of the
5050
# /etc/systemd/resolved.conf file as provided by systemd-resolved.
5151
no_extra_spaces: true

0 commit comments

Comments
 (0)