From 2ba5754feef21aae9174637a7111c9b4f5642423 Mon Sep 17 00:00:00 2001 From: Maximilian Kolb Date: Fri, 26 Sep 2025 15:53:21 +0200 Subject: [PATCH] Reword procedure to schedule recurring Ansible jobs * Adjusted unused anchors --- ...ing-a-recurring-ansible-job-for-a-host-group.adoc | 12 +++++++++--- ...cheduling-a-recurring-ansible-job-for-a-host.adoc | 10 ++++++---- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/guides/common/modules/proc_scheduling-a-recurring-ansible-job-for-a-host-group.adoc b/guides/common/modules/proc_scheduling-a-recurring-ansible-job-for-a-host-group.adoc index e1fad7ecd8b..89c8b6e276a 100644 --- a/guides/common/modules/proc_scheduling-a-recurring-ansible-job-for-a-host-group.adoc +++ b/guides/common/modules/proc_scheduling-a-recurring-ansible-job-for-a-host-group.adoc @@ -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*. diff --git a/guides/common/modules/proc_scheduling-a-recurring-ansible-job-for-a-host.adoc b/guides/common/modules/proc_scheduling-a-recurring-ansible-job-for-a-host.adoc index c42d4947474..8f1be966754 100644 --- a/guides/common/modules/proc_scheduling-a-recurring-ansible-job-for-a-host.adoc +++ b/guides/common/modules/proc_scheduling-a-recurring-ansible-job-for-a-host.adoc @@ -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. @@ -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*.