Difference between revisions of "Shell: (Ansible module)"

From wikieduonline
Jump to navigation Jump to search
Line 8: Line 8:
 
           [[uptime]]
 
           [[uptime]]
  
 +
 +
 +
- hosts: localhost
 +
  become: yes
 +
 +
  tasks:
 +
    - shell:
 +
          [[uptime]]
 +
      register: my_shell_output
 +
 +
    - debug: my_var=my_shell_output.stdout_lines
  
  

Revision as of 12:50, 25 November 2020

Advertising: