Advertisement
sandervanvugt

ansible methodology

Oct 29th, 2021
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. ---
  2. - name: create users
  3. hosts: localhost
  4. tasks:
  5. - name: create local users
  6. debug:
  7. msg: here we create local users
  8.  
  9.  
  10. - name: create remote users
  11. hosts: ansible2.example.com
  12. tasks:
  13. - name: create remote users
  14. debug:
  15. msg: here we create all the users
  16. - name: set passwords
  17. debug:
  18. msg: here we set passwords
  19. - name: copy SSH keys
  20. debug:
  21. msg: here we copy SSH keys
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement