Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- - hosts: localhost
- user: root
- gather_facts: false
- tasks:
- - name: Run a command as sample
- command: /usr/bin/touch anyfile.php
- become: true
- become_method: su
- become_user: sample
- become_flags: '-s /bin/sh'
Add Comment
Please, Sign In to add comment