mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-06-10 02:35:54 +00:00
There are now two topology management modules placed in the plugins folder: plugins/modules/ipatopologysegment.py plugins/modules/ipatopologysuffix.py Topology segments can be added, removed and reinitialized with the ipatopologysegment module. Also it is possible to verify topology suffixes with the ipatopologysuffix module. A new module_utils for plugins has been added: plugins/module_utils/ansible_freeipa_module.py And documentation for the modules: README-topology.md New sample playbooks are available in playbooks/topology: playbooks/topology/add-topologysegment.yml playbooks/topology/delete-topologysegment.yml playbooks/topology/reinitialize-topologysegment.yml playbooks/topology/verify-topologysuffix.yml The plugins folder can be used with the new Ansible Collections supported by Ansible 2.8 and Ansible galaxy 3.2.
15 lines
335 B
YAML
15 lines
335 B
YAML
---
|
|
- name: Playbook to handle topologysegment
|
|
hosts: ipaserver
|
|
become: true
|
|
|
|
tasks:
|
|
- name: Reinitialize topology segment
|
|
ipatopologysegment:
|
|
password: MyPassword123
|
|
suffix: domain
|
|
left: ipareplica1.test.local
|
|
right: ipareplica2.test.local
|
|
direction: left-to-right
|
|
state: reinitialized
|