diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-10-10 14:17:23 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-10-10 14:17:23 +0300 |
commit | 0bc3546ef3192b30eb1290873a40327176dfd526 (patch) | |
tree | 1de785fcf66bcc97c424f3b32019e453a247098e /roles/unix_users/tasks/main.yml | |
parent | 2c23d4fbbbaece4c162c95efdf1baf088b58f9c0 (diff) | |
download | debian-ansible-0bc3546ef3192b30eb1290873a40327176dfd526.tar.gz |
feat(unix_users): user MUST declare compat version they want
Diffstat (limited to 'roles/unix_users/tasks/main.yml')
-rw-r--r-- | roles/unix_users/tasks/main.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/unix_users/tasks/main.yml b/roles/unix_users/tasks/main.yml index 00c49fd..7681632 100644 --- a/roles/unix_users/tasks/main.yml +++ b/roles/unix_users/tasks/main.yml @@ -1,3 +1,8 @@ +- name: "check unix_users_version" + shell: | + [ "{{ unix_users_version }}" = "0" ] || \ + (echo "Unexpected version {{ unix_users_version }}" 1>&2; exit 1) + - name: create system users with_items: "{{ unix_users }}" user: |