Advertisement
Guest User

Untitled

a guest
Oct 1st, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. - name: Set the timezone
  2. shell: echo "America/Manaus" | tee /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata
  3.  
  4. - name: Set locale
  5. shell: locale-gen pt_BR.UTF-8
  6.  
  7. - name: Define locale
  8. shell: echo 'LC_ALL="pt_BR.UTF-8"' > /etc/default/locale
  9.  
  10. #Password 123456
  11. - name: Add user ghost
  12. user: name=ghost group=root password=$6$rounds=656000$YikcDgDgNFSqpWaa$htE7Z0WFUQkH31FApI/NbEE2rj.WmjQc.mM1LsVxyzrBfVkOWMwupDGGwUce1wOog/bHSrLTBQ0TZNFhn40An1
  13.  
  14. - name: Add ghost user to sudoers
  15. lineinfile: dest=/etc/sudoers
  16. regexp="ghost} ALL"
  17. line="ghost ALL=(ALL) ALL"
  18. state=present
  19.  
  20. - name: Install latest unzip
  21. apt: name=unzip state=latest update_cache=yes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement