Hi,
I set up relevant ansible files exaclty like described in:
https://www.freeipa.org/page/V4/ClientInstallationWithAnsible#Ansible_ipa...
The ipaclient role was fetched from here:
https://github.com/freeipa/ansible-freeipa/tree/master/roles
Uninstalling an ipaclient works. Installing an ipaclient fails with:
ERROR! no action detected in task. This often indicates a misspelled
module name, or incorrect module path.
The error appears to have been in '/srv/ansible/install.yml': line 12,
column 5, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: Configure IPA client
^ here
Most likely the ipaclient module cannot be found. I downloaded
https://github.com/freeipa/ansible-freeipa/tree/master/module_utils and
put the three python files into the library directory next to my
install.yml playbook file. I also put them into
~/.ansible/plugins/modules. But that still did not work.
This is my install.yml:
---
- name: Playbook to configure IPA clients with username/password
hosts: ipaclients
become: true
tasks:
- name: Install IPA client package
package:
name: ipa-client
state: present
- name: Configure IPA client
ipaclient:
state: present
domain: "{{ ipaclient_domain }}"
realm: "{{ ipaclient_realm }}"
principal: "{{ ipaclient_principal }}"
password: "{{ ipaclient_password }}"
extra_args: "{{ ipaclient_extraargs }}"
And this my inventory
file:
[ipaclients]
ipa-test.linux.mydomain.at
[ipaclients:vars]
ipaclient_domain=linux.mydomain.at
ipaclient_realm=LINUX.MYDOMAIN.AT
#ipaclient_extraargs=[ '--kinit-attempts=3', '--mkhomedir']
ipaclient_principal=enroll
ipaclient_password=somepass
What am I missing here?
Cheers,
Ronald