Guest User

Untitled

a guest
Feb 15th, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. ---
  2. - hosts: qualif
  3. vars:
  4. ansible_user: osadmin
  5. ansible_password: 'password'
  6. ansible_become_password: 'password2'
  7. tasks:
  8. - name: Copy stuff from here to over there
  9. become: yes
  10. become_user: root
  11. become_method: su
  12. become_flags: '-i'
  13. copy:
  14. src: /home/osadmin/file.txt
  15. dest: /home/osadmin/file-changed.txt
  16. owner: osadmin
  17. group: osadmin
  18. mode: 0777
Add Comment
Please, Sign In to add comment