diff options
author | Aaron LI <aly@aaronly.me> | 2018-03-05 19:09:52 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-03-14 11:35:08 +0800 |
commit | f0459bf428ad3f00fc81b082cca1adc7391da297 (patch) | |
tree | f950e897fc7066eccfacce7014554c7de46ec8e1 | |
parent | 5c392f6204e069a2ec41a378ec2d9fb0ebec3d0a (diff) | |
download | ansible-dfly-vps-f0459bf428ad3f00fc81b082cca1adc7391da297.tar.bz2 |
bootstrap: ignore errors & changes when check group & user
-rw-r--r-- | roles/bootstrap/tasks/main.yml | 4 |
1 files changed, 4 insertions, 0 deletions
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: > |