kangasta/pullnrun

View on GitHub
examples/commands.yml

Summary

Maintainability
Test Coverage
name: Simple commands demo
tags:
- example
tasks:
- name: Run single command (array)
  run_command:
    command:
    - echo
    - Run single command
- name: Run single command (str)
  run_command:
    command: echo "Run single command"
- name: Echo last result
  run_command:
    command: "echo {{ pullnrun_last_result.success }}"
- name: Run Failing command
  run_command:
    command: sh -c "exit 255"
  stop_on_errors: no
- name: Run multiple commands (str)
  run_script:
    script:
    - pwd
    - echo $USER