Remove anything related to zsh
All checks were successful
Run ansible-lint / Perform Ansible Lint (push) Successful in 1m45s

This commit is contained in:
2025-08-12 18:42:49 +04:00
parent 9a17174ab9
commit 879cb58cd1
6 changed files with 20 additions and 61 deletions

View File

@@ -14,16 +14,11 @@
validate: visudo -cf %s
become: true
- name: Check if zsh is installed
ansible.builtin.stat:
path: /bin/zsh
register: access_zsh_installed
- name: Create accounts
ansible.builtin.user:
name: '{{ item.key }}'
password: ''
shell: '{{ "/bin/zsh" if access_zsh_installed.stat.exists else "/bin/bash" }}'
shell: '/bin/bash'
group: admin
generate_ssh_key: false
state: present