Using --start-at-task in AWX

Hi, this is my first time on this forum, and want to start off by saying thank you for having it! I’ve been using Ansible for a few years, but am new to AWX. With Ansible, I often will use the --start-at-task option in the command line to start at a specific task in a playbook. I’m looking for a way to use that with AWX. I don’t see it anywhere. I’ve seen people suggest using tags instead, and correct me if I’m wrong, but when using tags, doesn’t only the tasks that have the tag get ran? The nice thing about “–start-at-task” is that it will start at a task and just keep running to the end. I don’t want to have to tag every subsequent task in order to make it run. I appreciate any thoughts or suggestions given.

Thanks

Welcome to the forum, @brunojohn23!

You can configure the start-at-task option in AWX through the API with the awx.awx.job_template collection.

- name: Start at task example.
  awx.awx.job_template:
    name: Demo.
    start_at_task: Some task.

I don’t think this option is available in the GUI.

Thank you @jiholland! I was able to achieve this using the AWX CLI after installing awxkit. I used the awx job_templates modify command.

Here’s basically what my command looked like:

awx --conf.host my_awx_host -conf.token my_awx_token job_templates modify my_jobtemplate_id --start_at_task ‘my_ansible_task_name

1 Like