apply suggested change

pull/83113/head
Thomas Wang 2 months ago
parent 0ddf3aeb2e
commit 87219304a3

@ -74,6 +74,7 @@ options:
Since Ansible 2.5, the default shell for non-system users on macOS is V(/bin/bash). Since Ansible 2.5, the default shell for non-system users on macOS is V(/bin/bash).
- On other operating systems, the default shell is determined by the underlying tool - On other operating systems, the default shell is determined by the underlying tool
invoked by this module. See Notes for a per platform list of invoked tools. invoked by this module. See Notes for a per platform list of invoked tools.
- From Ansible 2.18, the type is changed to I(path) from I(str).
type: path type: path
home: home:
description: description:

@ -83,6 +83,7 @@
user: user:
name: bob name: bob
shell: ~/custom_shell shell: ~/custom_shell
register: user_create_result
- name: Create a new user with custom shell to test ~ expansion second time should show ok not changed - name: Create a new user with custom shell to test ~ expansion second time should show ok not changed
user: user:
@ -90,8 +91,8 @@
shell: ~/custom_shell shell: ~/custom_shell
register: user_creation_result register: user_creation_result
- name: Assert that the user was not changed on subsequent runs - name: Assert that the user with a tilde in the shell path is created
assert: assert:
that: that:
- user_creation_result is not changed - user_creation_result is not changed
fail_msg: "Failure: User state was changed, We expect it to be same." - user_create_result is changed
Loading…
Cancel
Save