Skip to content

Commit 4497b32

Browse files
committed
fix(roles/mirror): set mode 0440 on sudoers file
1 parent 07aec69 commit 4497b32

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6969

7070
### Fixed
7171

72+
* **role:mirror**: Fix missing `0440` permissions on sudoers file
7273
* **role:login**: Rename sudoers file from `lfops_login` to `linuxfabrik` to match the kickstart configuration; remove the old file automatically
7374
* **roles**: Fix Ansible 2.19 deprecation warning for conditional results of type `int` by using `| length > 0` instead of `| length`
7475
* **role:firewall**: Fix fwbuilder repo clone being skipped when `run_once` picks a host without `firewall__fwbuilder_repo_url`

roles/mirror/tasks/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
ansible.builtin.copy:
2020
src: '/opt/mirror/mirror.sudoers'
2121
dest: '/etc/sudoers.d/mirror'
22+
mode: 0o440
2223
remote_src: true
2324

2425
- name: 'cp /opt/mirror/systemd/mirror-update.service /etc/systemd/system/mirror-update.service'

0 commit comments

Comments
 (0)