---
- name: create file
file:
path: /opt/testfile
state: touch
---
- hosts: '{{ host }}'
become: yes
become_method: sudo
become_user: jenkins
roles:
- test
ansible-playbook -i /tmp/ansible-workspace/environments/QA/inventory --extra-vars "host=QA" --ask-pass --ask-become-pass main.yml -vvv
ansible-playbook -i /tmp/ansible-workspace/environments/QA/inventory --extra-vars "host=QA" -u jenkins --ask-pass --ask-become-pass main.yml -vvv
> <mailto:ansible-project+unsub...@googlegroups.com>.