R&D/ansible

playbook command.yml

sunshout 2018. 4. 21. 10:02

- name: Send shell command

  hosts: all

  become: yes


  tasks:

    - name: Send shell command

      command: "{{ command }}"

      register: out


    - debug: msg="{{ out.stdout }}"