Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - hosts: qualif
- vars:
- ansible_user: osadmin
- ansible_password: 'password'
- ansible_become_password: 'password2'
- tasks:
- - name: Copy stuff from here to over there
- become: yes
- become_user: root
- become_method: su
- become_flags: '-i'
- copy:
- src: /home/osadmin/file.txt
- dest: /home/osadmin/file-changed.txt
- owner: osadmin
- group: osadmin
- mode: 0777
Add Comment
Please, Sign In to add comment