From f0459bf428ad3f00fc81b082cca1adc7391da297 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 5 Mar 2018 19:09:52 +0800 Subject: bootstrap: ignore errors & changes when check group & user --- roles/bootstrap/tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'roles/bootstrap/tasks') diff --git a/roles/bootstrap/tasks/main.yml b/roles/bootstrap/tasks/main.yml index b737188..24f4c82 100644 --- a/roles/bootstrap/tasks/main.yml +++ b/roles/bootstrap/tasks/main.yml @@ -8,6 +8,8 @@ - name: group - check deployment group command: pw groupshow "{{ deploy_user }}" register: pw_cmd + ignore_errors: true + changed_when: false - name: group - create deployment group command: pw groupadd "{{ deploy_user }}" -g 999 @@ -16,6 +18,8 @@ - name: user - check deployment user command: pw usershow "{{ deploy_user }}" register: pw_cmd + ignore_errors: true + changed_when: false - name: user - create deployment user command: > -- cgit v1.2.2