Files
ansible-freeipa/playbooks/host/hosts-present-with-managedby_host.yml
Rafael Guterres Jeffman 3943adaa8d Fix ansible-lint error 502 (unnamed-task) for example playbooks.
This patch adds 'name' to all example playbook tasks that did not
have it, fixing ansible-lint's error 'unnamed-task'.
2021-09-29 15:49:00 -03:00

17 lines
414 B
YAML

---
- name: Host present with managedby_host
hosts: ipaserver
become: true
tasks:
- name: Ensure hosts are present with managedby_host attribute.
ipahost:
ipaadmin_password: SomeADMINpassword
hosts:
- name: host01.example.com
managedby_host: server.example.com
force: yes
- name: host02.example.com
managedby_host: server.example.com
force: yes