TrashNotes

2025-02-17 08:09:10
- name: Run shell command on multiple servers (Ansible)
  hosts: webservers

  tasks:

    - name: Execute 'ls' command and capture output
      ansible.builtin.shell: |
         cd /tmp
         pwd
         ls -l
← Previous Next →
Back to list