apply suggested change

pull/83113/head
Thomas Wang 4 weeks 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).
- 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.
- From Ansible 2.18, the type is changed to I(path) from I(str).
type: path
home:
description:

@ -83,6 +83,7 @@
user:
name: bob
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
user:
@ -90,8 +91,8 @@
shell: ~/custom_shell
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:
that:
- 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