Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
:_mod-docs-content-type: PROCEDURE

[id="Scheduling_a_Recurring_Ansible_Job_for_a_Host_Group_{context}"]
[id="scheduling-a-recurring-ansible-job-for-a-host-group"]
= Scheduling a recurring Ansible job for a host group

You can schedule a recurring job to run Ansible roles on host groups.

.Prerequisite
* Ensure that you have assigned at least one Ansible role to your host group.
* Ensure that you have assigned at least one host to your host group.

.Procedure
. In the {ProjectWebUI}, navigate to *Configure* > *Host groups*.
. In the {ProjectWebUI}, navigate to *Configure* > *Host Groups*.
. In the *Actions* column, select *Configure Ansible Job* for the host group you want to schedule an Ansible roles run for.
. Click *Schedule recurring job*.
. Define the repetition frequency, start time, and date of the first run in the *Create New Recurring Ansible Run* window.
. In the *Repeat* list, select the interval.
. In the *Start time* field, enter the start time of the recurring job.
. In the *Start date* field, enter the start date of the recurring job.
. Click *Submit*.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
:_mod-docs-content-type: PROCEDURE

[id="scheduling-a-recurring-ansible-job-for-a-host_{context}"]
[id="scheduling-a-recurring-ansible-job-for-a-host"]
= Scheduling a recurring Ansible job for a host

You can schedule a recurring job to run Ansible roles on hosts.
Expand All @@ -9,9 +9,11 @@ You can schedule a recurring job to run Ansible roles on hosts.
* Ensure you have the `view_foreman_tasks`, `view_job_invocations`, and `view_recurring_logics` permissions.

.Procedure
. In the {ProjectWebUI}, navigate to *Hosts > All Hosts* and select the target host on which you want to execute a remote job.
. In the {ProjectWebUI}, navigate to *Hosts* > *All Hosts*.
. Select your host.
. On the *Ansible* tab, select *Jobs*.
. Click *Schedule recurring job*.
. Define the repetition frequency, start time, and date of the first run in the *Create New Recurring Ansible Run* window.
. In the *Repeat* list, select the interval.
. In the *Start time* field, enter the start time of the recurring job.
. In the *Start date* field, enter the start date of the recurring job.
. Click *Submit*.
. Optional: View the scheduled Ansible job in host overview or by navigating to *Ansible* > *Jobs*.