-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add running Ansible playbook in Foreman (#2951)
Co-authored-by: Aneta Šteflová Petrová <[email protected]> Co-authored-by: Maximilian Kolb <[email protected]>
- Loading branch information
1 parent
7c95172
commit 530947d
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
guides/common/modules/proc_running-an-ansible-playbook.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[id="running-an-ansible-playbook-from-{project-context}_{context}"] | ||
= Running an Ansible playbook from {Project} | ||
|
||
You can run an Ansible playbook on a host or host group by executing a remote job in {Project}. | ||
|
||
.Prerequisites | ||
* Ansible plugin in {Project} is enabled. | ||
* Remote job execution is configured. | ||
For more information, see xref:Configuring_and_Setting_Up_Remote_Jobs_{context}[]. | ||
* You have an Ansible playbook ready to use. | ||
|
||
.Procedure | ||
. In the {ProjectWebUI}, navigate to *Monitor* > *Jobs*. | ||
. Click *Run Job*. | ||
. In *Job category*, select `Ansible Playbook`. | ||
. In *Job template*, select `Ansible - Run playbook`. | ||
. Click *Next*. | ||
. Select the hosts on which you want to run the playbook. | ||
. In the *playbook* field, paste the content of your Ansible playbook. | ||
. Follow the wizzard to complete setting the remote job. | ||
For more information, see xref:executing-a-remote-job_{context}[]. | ||
. Click *Submit* to run the Ansible playbook on your hosts. | ||
|
||
.Additional resources | ||
* Alternatively, you can import Ansible playbooks from {SmartProxyServers}. | ||
For more information, see the following resources: | ||
** xref:importing-an-ansible-playbook-by-name_{context}[] | ||
** xref:importing-all-available-ansible-playbooks_{context}[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters