# is it possible to create a schedule for a job template via a playbook/workflow?

**URL:** <https://forum.ansible.com/t/is-it-possible-to-create-a-schedule-for-a-job-template-via-a-playbook-workflow/31032>\
**Category:** AWX Project\
**Tags:** vmware, awx\
**Created:** [August 13, 2019, 2:55pm UTC](https://forum.ansible.com/t/is-it-possible-to-create-a-schedule-for-a-job-template-via-a-playbook-workflow/31032 "2019-08-13T14:55:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ansible\_Madness](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Ansible\_Madness](https://forum.ansible.com/u/Ansible_Madness)\
**Post date:** [August 13, 2019, 2:55pm UTC](https://forum.ansible.com/t/is-it-possible-to-create-a-schedule-for-a-job-template-via-a-playbook-workflow/31032/1 "2019-08-13T14:55:29Z")

</div>

I currently have a job template/workflow that does the following

1. create VM snapshot (vmware ESXi)
2. patches a OS and all that stuff
3. end

Then 1 day later (thats the policy), the VM snapshot is removed by another job template run manually

What I would like to have is this workflow if possible (number 2 is the important one):

1. create VM snapshot
2. create a once-off schedule back to awx/tower to run the delete snapshot template 1 day later (using the run-once schedule function)
3. patch etc…
4. end

Note: I do not want to set a wait for 1 day in the current workflow

Anyways, browsing through the tower module that i think it relevant ([https://docs.ansible.com/ansible/latest/modules/tower\_job\_launch\_module.html#tower-job-launch-module](https://docs.ansible.com/ansible/latest/modules/tower_job_launch_module.html#tower-job-launch-module)) i dont see a schedule option…

Any thoughts?

Appreciated.

---

<div class="post-metadata">

**Author:** ![john.westcott.iv](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/john.westcott.iv/32/95_2.png) [@john.westcott.iv](https://forum.ansible.com/u/john.westcott.iv)\
**Post date:** [August 16, 2019, 12:43pm UTC](https://forum.ansible.com/t/is-it-possible-to-create-a-schedule-for-a-job-template-via-a-playbook-workflow/31032/2 "2019-08-16T12:43:42Z")

</div>

Make a call to the API to schedule the job using the URI module?

-John
