# How to schedule an ansible job form a command line

**URL:** <https://forum.ansible.com/t/how-to-schedule-an-ansible-job-form-a-command-line/26816>\
**Category:** Ansible Project\
**Created:** [February 21, 2018, 5:29pm UTC](https://forum.ansible.com/t/how-to-schedule-an-ansible-job-form-a-command-line/26816 "2018-02-21T17:29:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![timothy.n.mcgibbon](https://avatars.discourse-cdn.com/v4/letter/t/c5a1d2/32.png) [@timothy.n.mcgibbon](https://forum.ansible.com/u/timothy.n.mcgibbon)\
**Post date:** [February 21, 2018, 5:29pm UTC](https://forum.ansible.com/t/how-to-schedule-an-ansible-job-form-a-command-line/26816/1 "2018-02-21T17:29:31Z")

</div>

What is the command line to have Ansible schedule a job template with variables. We have some 30+ job templates and need a way to schedule the jobs at requested time. So we have an interface program that know each job template variables and can create and run the command line to the Ansible Tower where the job templates are defined in. All document I found use the Ansible Tower console to schedule the jobs. We need the program to do the work of scheduling the jobs.

Any help will be usefully. Thank for your help.

**Timothy McGibbon**

GDIT – USPS Middleware Services

Enterprise Computing Services

2825 Lone Oak Parkway

Eagan, MN 55121-9320

Direct:(651) 406-1597  
Cell: (651) 403-9766

Group email: [ECS Middleware](mailto:ECS%20Middleware)

e-Mail: [Timothy.N.Mcgibbon@usps.gov](mailto:Timothy.N.Mcgibbon@usps.gov)

P Please consider the environment before printing this email.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [February 21, 2018, 7:06pm UTC](https://forum.ansible.com/t/how-to-schedule-an-ansible-job-form-a-command-line/26816/2 "2018-02-21T19:06:33Z")

</div>

Any scheduler will work, cron, at ,etc

---

<div class="post-metadata">

**Author:** ![timothy.n.mcgibbon](https://avatars.discourse-cdn.com/v4/letter/t/c5a1d2/32.png) [@timothy.n.mcgibbon](https://forum.ansible.com/u/timothy.n.mcgibbon)\
**Post date:** [February 22, 2018, 4:37pm UTC](https://forum.ansible.com/t/how-to-schedule-an-ansible-job-form-a-command-line/26816/3 "2018-02-22T16:37:50Z")

</div>

I have found what I needed at [http://docs.ansible.com/ansible-tower/latest/html/towerapi/launch\_jobtemplate.html](http://docs.ansible.com/ansible-tower/latest/html/towerapi/launch_jobtemplate.html)

> **(attachments)**
>
> ![Auto Generated Inline Image 1.png](https://us1.discourse-cdn.com/ansible/original/2X/d/d1c40a6dcf39e95ee57baa150b48c8191bf46b2c.png)
