Skip to content

Commit

Permalink
Merge pull request dev-sec#300 from danielkubat/master
Browse files Browse the repository at this point in the history
define file permissions explicitly
  • Loading branch information
schurzi authored Aug 18, 2020
2 parents 429e135 + 8958d2c commit c29d950
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tasks/sysctl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
template:
src: 'etc/default/ufw.j2'
dest: '/etc/default/ufw'
mode: '0644'
when:
- ufw_manage_defaults
- ansible_facts.distribution in ['Debian', 'Ubuntu']
Expand Down
2 changes: 2 additions & 0 deletions tasks/yum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
path: '{{ item.path }}'
regexp: '^\s*gpgcheck.*'
replace: 'gpgcheck=1'
mode: '0644'
with_items:
- '{{ yum_repos.files | default([]) }}'

Expand All @@ -34,6 +35,7 @@
path: '{{ item }}'
regexp: '^\s*gpgcheck\W.*'
replace: 'gpgcheck=1'
mode: '0644'
register: status
failed_when: status.rc is defined and status.rc != 257
loop:
Expand Down

0 comments on commit c29d950

Please sign in to comment.