Search code examples
ansibleansible-inventory

How to Pause an Ansible Playbook on command line without specifying it in YAML?


Our team have been trying to develop some GUI for the ansible execution and I wanted to know if there is some way to pause the execution of the playbook midway with just command line argument. I am familiar with the Pause option but that needs to be added in the YAML, we don't want that. I am also familiar with the --step argument passed on the CLI, that's close to what we want but not specifically.

Thanks.


Solution

  • While the playbook is running you can press ctrl + s to freeze the console and then ctrl + q to resume it.