Changeset - b32e4e0e89fe
[Not reviewed]
0 1 0
x - 21 months ago 2023-08-24 01:55:34
xbr@c3l.lu
feat: change root shell to bash
1 file changed with 5 insertions and 0 deletions:
0 comments (0 inline, 0 general)
initial_server_setup/initial_setup.yml
Show inline comments
 
@@ -112,12 +112,17 @@
 
          - sudo
 
        append: true
 
        shell: /bin/bash
 
        state: present
 
      loop: "{{ users_system }}"
 
      tags: users
 
    - name: Change shell for root to bash
 
      ansible.builtin.user:
 
        name: "root"
 
        shell: /bin/bash
 
      tags: users
 

	
 
    - name: Add SSH key for users from vars
 
      ansible.posix.authorized_key:
 
        user: "{{ item.username }}"
 
        state: present
 
        key: "{{ lookup('file', item.key_path) }}"
0 comments (0 inline, 0 general)