@@ -173,14 +173,14 @@ Example playbook to ensure host presence with a random password:
...
@@ -173,14 +173,14 @@ Example playbook to ensure host presence with a random password:
name:host01.example.com
name:host01.example.com
random:yes
random:yes
force:yes
force:yes
update_password:on_create
register:ipahost
register:ipahost
-name:Print generated random password
-name:Print generated random password
debug:
debug:
var:ipahost.host.randompassword
var:ipahost.host.randompassword
```
```
Please remember that the `force` tag will also force the generation of a new random password even if the host already exists and if `update_password` is limited to `on_create`.
Please remember that a new random password will be generated for an existing but not enrolled host if `update_password` is not limited to `on_create`. For an already enrolled host the task will fail with `update_password` default setting `always`.
Example playbook to ensure presence of several hosts with a random password:
Example playbook to ensure presence of several hosts with a random password:
...
@@ -198,9 +198,11 @@ Example playbook to ensure presence of several hosts with a random password:
...
@@ -198,9 +198,11 @@ Example playbook to ensure presence of several hosts with a random password:
- name: host01.example.com
- name: host01.example.com
random: yes
random: yes
force: yes
force: yes
update_password: on_create
- name: host02.example.com
- name: host02.example.com
random: yes
random: yes
force: yes
force: yes
update_password: on_create
register: ipahost
register: ipahost
- name: Print generated random password for host01.example.com
- name: Print generated random password for host01.example.com
...
@@ -211,7 +213,7 @@ Example playbook to ensure presence of several hosts with a random password:
...
@@ -211,7 +213,7 @@ Example playbook to ensure presence of several hosts with a random password:
Please remember that the `force` tag will also force the generation of a new random password even if the host alreay exists and if `update_password` is limited to `on_create`.
Please remember that a new random password will be generated for an existing but not enrolled host if `update_password` is not limited to `on_create`. For an already enrolled host the task will fail with `update_password` default setting `always`.
Example playbook to ensure presence of host member principal:
Example playbook to ensure presence of host member principal: