mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
There is a new user management module placed in the plugins folder: plugins/modules/ipauser.py The host module allows to add, remove and disable hosts. The host module is as compatible as possible to the Ansible upstream ipa_host` module, but addtionally offers to disable hosts. Here is the documentation for the module: README-host.md New example playbooks have been added: playbooks/host/add-host.yml playbooks/host/delete-host.yml playbooks/host/disable-host.yml
12 lines
228 B
YAML
12 lines
228 B
YAML
---
|
|
- name: Playbook to handle hosts
|
|
hosts: ipaserver
|
|
become: true
|
|
|
|
tasks:
|
|
- name: Disable host host01.example.com
|
|
ipahost:
|
|
ipaadmin_password: MyPassword123
|
|
name: host01.example.com
|
|
state: disabled
|