Changeset - ad50e8774d77
[Not reviewed]
0 1 0
x - 21 months ago 2023-08-04 16:37:00
xbr@c3l.lu
fix: users should not have primary group `sudo`
1 file changed with 7 insertions and 3 deletions:
0 comments (0 inline, 0 general)
initial_server_setup/initial_setup.yml
Show inline comments
 
@@ -57,6 +57,7 @@
 
        password: "{{ password | password_hash('sha512') }}"
 
        groups:
 
          - sudo
 
        append: true
 
        state: present
 
      tags: users
 

	
 
@@ -64,8 +65,9 @@
 
      ansible.builtin.user:
 
        name: orimpe
 
        password: "{{ password | password_hash('sha512') }}"
 
        groups: # Empty by default, here we give it some groups
 
        groups:
 
          - sudo
 
        append: true
 
        state: present
 
      tags: users
 

	
 
@@ -73,8 +75,9 @@
 
      ansible.builtin.user:
 
        name: metalgamer
 
        password: "{{ password | password_hash('sha512') }}"
 
        groups: # Empty by default, here we give it some groups
 
        groups:
 
          - sudo
 
        append: true
 
        state: present
 
      tags: users
 

	
 
@@ -82,8 +85,9 @@
 
      ansible.builtin.user:
 
        name: xbr
 
        password: "{{ password | password_hash('sha512') }}"
 
        groups: # Empty by default, here we give it some groups
 
        groups:
 
          - sudo
 
        append: true
 
        state: present
 
      tags: users
 

	
0 comments (0 inline, 0 general)