summaryrefslogtreecommitdiff
path: root/test/integration/targets/user
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2020-02-27 21:09:34 -0800
committerMatt Clay <matt@mystile.com>2020-02-27 21:45:18 -0800
commit21475aa83b29812c5dfbcced8d1b0fb16ce24d00 (patch)
tree8ad3c9e30642bbe3ef4a43105bf31599c1a64fd3 /test/integration/targets/user
parentb6c2056ea2f9f6d9e8a0a147e1acb29eef03a755 (diff)
downloadansible-21475aa83b29812c5dfbcced8d1b0fb16ce24d00.tar.gz
Test system users and groups.
Diffstat (limited to 'test/integration/targets/user')
-rw-r--r--test/integration/targets/user/tasks/main.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/integration/targets/user/tasks/main.yml b/test/integration/targets/user/tasks/main.yml
index 25fc9f8c68..c084bd42c5 100644
--- a/test/integration/targets/user/tasks/main.yml
+++ b/test/integration/targets/user/tasks/main.yml
@@ -55,6 +55,19 @@
- user_test0_1 is not changed
- '"ansibulluser" in user_names.stdout_lines'
+# create system user
+
+- name: remove user
+ user:
+ name: ansibulluser
+ state: absent
+
+- name: create system user
+ user:
+ name: ansibulluser
+ state: present
+ system: yes
+
# test adding user with uid
# https://github.com/ansible/ansible/issues/62969
- name: remove the test user