From 7590a936ba405ec00a1291917547975ba0e60f29 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Tue, 13 Dec 2022 16:40:34 +0200 Subject: [PATCH] Allow rc 1 --- tasks/configure_dbmail_users.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/configure_dbmail_users.yml b/tasks/configure_dbmail_users.yml index 3858e61..833e4a9 100644 --- a/tasks/configure_dbmail_users.yml +++ b/tasks/configure_dbmail_users.yml @@ -6,6 +6,8 @@ - name: Set user accounts password shell: "dbmail-users -c {{ item.username }} -w {{ item.password}} -p {{ item.password_type | default('sha512') }}" loop: "{{ dbmail_users }}" + register: result + changed_when: result.rc < 2 - name: Link user accounts with emails shell: "dbmail-users -c {{ item.username }} -s {{ item.email }}" @@ -13,4 +15,4 @@ - name: Set user accounts quota shell: "dbmail-users -c {{ item.username }} -m {{ item.quota }}" - loop: "{{ dbmail_users }}" \ No newline at end of file + loop: "{{ dbmail_users }}"