This commit is contained in:
parent
c65eeac65e
commit
36a7f7ff39
@ -14,12 +14,12 @@
|
||||
- debug:
|
||||
msg: "{{ config_download }}"
|
||||
|
||||
- name: pass user shell to zsh
|
||||
user:
|
||||
name: "{{user.name}}" # required. Name of the user to create, remove or modify.
|
||||
shell: /bin/zsh # not required. Optionally set the user's shell.,On macOS, before version 2.5, the default shell for non-system users was /usr/bin/false. Since 2.5, the default shell for non-system users on macOS is /bin/bash.
|
||||
state: present # not required. choices: absent;present. Whether the account should exist or not, taking action if the state is different from what is stated.
|
||||
become: yes
|
||||
#- name: pass user shell to zsh
|
||||
# user:
|
||||
# name: "{{user.name}}" # required. Name of the user to create, remove or modify.
|
||||
# shell: /bin/zsh # not required. Optionally set the user's shell.,On macOS, before version 2.5, the default shell for non-system users was /usr/bin/false. Since 2.5, the default shell for non-system users on macOS is /bin/bash.
|
||||
# state: present # not required. choices: absent;present. Whether the account should exist or not, taking action if the state is different from what is stated.
|
||||
# become: yes
|
||||
|
||||
- name: test if user bash rc exist
|
||||
stat:
|
||||
|
Loading…
Reference in New Issue
Block a user