summaryrefslogtreecommitdiff
path: root/roles/unix_users/subplot.yaml
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-10-10 09:58:06 +0300
committerLars Wirzenius <liw@liw.fi>2020-10-10 09:58:06 +0300
commitb2552e839c18a6831e258dc13f90e55643cfaa34 (patch)
treeb7dadc9b4e6e96dbbae7e071d0005a37881baa92 /roles/unix_users/subplot.yaml
parentcada4d50068e4447fd1ed2eba1cd973381c97af8 (diff)
downloaddebian-ansible-b2552e839c18a6831e258dc13f90e55643cfaa34.tar.gz
fix: unix_users scenario verifies user doesn't exist before creating
Diffstat (limited to 'roles/unix_users/subplot.yaml')
-rw-r--r--roles/unix_users/subplot.yaml3
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/unix_users/subplot.yaml b/roles/unix_users/subplot.yaml
index 9fcc961..e59c9a0 100644
--- a/roles/unix_users/subplot.yaml
+++ b/roles/unix_users/subplot.yaml
@@ -1,2 +1,5 @@
+- then: the host has no user {username}
+ function: host_does_not_have_user
+
- then: the host has user {username}
function: host_has_user