# # This file is example of rundock scenario file based on yaml format. # # ------------------------------------------------------------------- # ### scenario section ### # - target: # : # - # - : # : # : # - target: # : # --- # ### target information section ### # : # target_type: host # : # : # : # : # --- # ### task section ### # : # - "" # - : # : # : # --- # ### hook section ### # : # hook_type: # : # : # : # : # ------------------------------------------------------------------- # - target: 127.0.0.1 command: - "hostname" - "uname -a" hook: - logging - target: anyhost-01 task: - echo_platform - echo_users command: - errexit: true - "rm /tmp/riskyfile" - errexit: false - "rm /tmp/safetyfile" - "ls -1 /tmp" hook: all --- anyhost-01: target_type: host host: 192.168.1.11 ssh_opts: port: 22 user: anyuser anyhost-02: host: 192.168.1.12 --- echo_platform: command: - "hostname" - "uname -a" echo_users: command: - "whoami" - "w" --- logging: hook_type: file filepath: /var/log/rundock.log