Advertisement
Guest User

Prout

a guest
Mar 14th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. - name: Adding user {{ user }}
  2. user: name={{ user }}
  3. group={{ user }}
  4. shell=/bin/bash
  5. password=${password}
  6. groups=sudo
  7. append=yes
  8. - name: get the username running the deploy
  9. local_action: command whoami
  10. register: username_on_the_host
  11.  
  12. - debug: var=username_on_the_host
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement