You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

20 lines
265 B

---
- hosts: service
remote_user: ubuntu
vars:
user: "ubuntu"
tasks:
- name: ps
become: yes
become_user: "{{ user }}"
command: ps aux
ignore_errors: yes
register: o
- name: ls o
debug: var=o.stdout_lines