Skip to content

Commit fd27486

Browse files
Do not use params to configure hosts via Ansible
foreman_ansible does not support using host parameters to configure/parametrize Ansible roles to configure hosts.
1 parent 3908ebe commit fd27486

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

guides/common/modules/proc_overriding-ansible-variables-in-project.adoc

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -47,24 +47,3 @@ If the hashes contain the same key, the value is overwritten by the value of the
4747
** *Avoid Duplicates* {endash} Ensures that the values in the array or hash are unique.
4848
. Optional: Expand the *Specify Matchers* area and specify criteria for selecting hosts on which the variable overrides.
4949
. To save the override settings, click *Submit*.
50-
51-
To use the Ansible variable, add the variable as a parameter to your host or host group, or add the variable as a global parameter.
52-
53-
.Adding the variable to a host
54-
. In the {ProjectWebUI}, navigate to *Hosts > All Hosts* and select the host that you want to use.
55-
. Click the *Ansible* tab, and in the *Variables* area, click the pencil icon to edit the value of the variable.
56-
. Click the tick icon to accept the value of the changed variable or the cross icon to cancel the change.
57-
58-
.Adding the variable to a host group
59-
. In the {ProjectWebUI}, navigate to *Configure* > *Host Groups*, and select the host group that you want to use.
60-
. Click the *Parameters* tab, and in the *Host Group Parameters* area, click *Add Parameter*.
61-
. In the *Name* field, add the Ansible variable name.
62-
. From the *Type* list, select the type of the variable for validation.
63-
. In the *Value* field, enter the value for the variable.
64-
65-
.Adding the variable as a global parameter
66-
. In the {ProjectWebUI}, navigate to *Configure* > *Global Parameters*, and click *Create Parameter*.
67-
. In the *Name* field, add the Ansible variable name.
68-
. From the *Type* list, select the type of the variable for validation.
69-
. In the *Value* field, enter the value for the variable.
70-
. Optional: If you do not want to display the Ansible variable in plain text, select the *Hidden Values* checkbox to display the content of the variable as asterisks in the {ProjectWebUI}.

0 commit comments

Comments
 (0)