aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-03-05 19:09:52 +0800
committerAaron LI <aly@aaronly.me>2018-03-14 11:35:08 +0800
commitf0459bf428ad3f00fc81b082cca1adc7391da297 (patch)
treef950e897fc7066eccfacce7014554c7de46ec8e1 /roles
parent5c392f6204e069a2ec41a378ec2d9fb0ebec3d0a (diff)
downloadansible-dfly-vps-f0459bf428ad3f00fc81b082cca1adc7391da297.tar.bz2
bootstrap: ignore errors & changes when check group & user
Diffstat (limited to 'roles')
-rw-r--r--roles/bootstrap/tasks/main.yml4
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: >