X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian%2Froles%2Fphd%2Ftasks%2Fmain.yml;h=7ab7ba1d50574c21de7734da3b7dd3e2a5053812;hb=d75839f853d60353ccb4eb4796491720f014d4f1;hp=455605f45225f57ee9cd14ba4ef9505991f20cce;hpb=009018ea1ff7e3eab45c523559c0271850da228b;p=ansible.git diff --git a/playbooks/debian/roles/phd/tasks/main.yml b/playbooks/debian/roles/phd/tasks/main.yml index 455605f..7ab7ba1 100644 --- a/playbooks/debian/roles/phd/tasks/main.yml +++ b/playbooks/debian/roles/phd/tasks/main.yml @@ -1,7 +1,8 @@ - name: Test if user phd already exists command: test -f ~/.profile -a -f ~/.shellrc - ignore_errors: true + failed_when: false register: phd_exist + changed_when: phd_exist.rc != 0 - debug: msg: "User phd has already been created"