Skip to content

Improve Tasks #16

@alajmo

Description

@alajmo

This is an issue to improve the task object. I've gathered the following use-cases:

  • [ x] Return correct error exit codes when running tasks
  • to be able to access the previous exit code of the previous task
  • a summary of task execution at the end
  • want a --step mode flag or config setting to prompt before executing a task
  • Don't allow duplicate tasks/servers/specs/targets
  • Task not callable, only from another task (as not to accidently call it)
  • Hide tasks from auto-completion via hidden: true attribute
  • Silent output from task via silent: true (and flag)
  • ExecTTY should be config shell
  • Add flag default_timeout_s
  • Use chdir for tasks, work_dir for servers
  • Move limit/limitp to spec, or move order to target
  • Figure out changed/skipped/when
  • Conditional tasks (success, error, skip)
  • Add callbacks (success/error)
  • Loader show current task and how many left on table
  • Add retries to task
  • Add required envs
  • Add option to prompt for envs
  • Handle Match * in ssh config for inventory as well
  • Something similar to play, to trigger multiple tasks (with their own context)
  • Add env variables to multiple servers
  • Run one task, save output from all, and then have one task handle differences
  • Save logs/output to files (remote/local)
  • Diff task
  • Inherit default from default spec/target
  • Add yaml to command mapper
  • Implement facts
  • Configure what to show, host/ip or name, configure via theme/cli flags
  • - Template for server prefix, similar to header
  • - Add colors to describe (key bold, value color), true (green), false (red)
  • - Add Tree output
  • Fix hashed ip6 with port 22 does not work, all other combinations work
  • Fix sake ssh inv not working

A separate pull-request will be created to implement the necessary changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions