run_bash_script_on_remote_hosts.yaml 203 B

12345678
  1. ---
  2. - name: Transfer and execute a script.
  3. hosts: all
  4. become: true
  5. tasks:
  6. - name: Copy and Execute the script
  7. script: ~/playbooks/CheckMK_server/add_on_target_using_api.sh