Skip to content

Commit

Permalink
No need to set group on things with 0 bit set for group
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Jul 9, 2024
1 parent fb62f5b commit 8d3eb85
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions ansible/legacy-hosts-playbook.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
- hosts: all:!no_ssh_users
become: yes
vars:
admin_group_name: adm
roles:
Expand Down
3 changes: 0 additions & 3 deletions ansible/roles/ssh_users/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
path: "/home/{{item}}/.ssh"
state: directory
owner: "{{item}}"
group: "{{ admin_group_name }}"
mode: 0700
with_items: "{{ admin_usernames }}"

Expand All @@ -35,7 +34,6 @@
path: "/home/{{item}}/.ssh"
state: directory
owner: "{{item}}"
group: "users"
mode: 0700
with_items: "{{ non_admin_usernames }}"

Expand All @@ -44,7 +42,6 @@
template:
src: authorized_keys
dest: "/home/{{item}}/.ssh/authorized_keys"
owner: "{{item}}"
mode: 0400
with_items: "{{ admin_usernames | union(non_admin_usernames) }}"

Expand Down

0 comments on commit 8d3eb85

Please sign in to comment.