Запуск скрипта ансибл

27.07.2020 - Записи в блоге

- block: 
  - name: Run a script with arguments
    shell:
      cmd: "/scripts/path/filename.sh --argument1 {{ argument1value }}"
    register: script_result

- debug: msg="{{ script_result.stdout_lines }}"

 

› tags: ansible / cmd / shell /