2 Commits

Author SHA1 Message Date
Grzegorz Grasza
e3afdf14b6 Use system installed ansible-freeipa instead of collections
The RHEL suppplied ansible-freeipa RPM package installs the
modules at the default ansible module path and not as a
collection. This caused problems for the end user.

This also changes the linter job to run on CentOS, since
the ansible-freeipa package is not available on Ubuntu.

This also reverts commit 2cc09a2b68c5b64b35742de91d4e7c0cd73f188c.
Reason for revert: We get this error:
 error={"msg": "template error while templating string:
 cannot import name 'environmentfilter' from 'jinja2.filters'
 (/usr/lib/python3.9/site-packages/ansible/_vendor/jinja2/filters.py)\n
  line 0. String: {{ 'A' if record_value | ansible.utils.ipv4
  else 'AAAA' }}"}

Change-Id: I7df25fb945da1d98c68fe4113a09afdc2f2c5687
2022-08-18 17:28:51 +02:00
Ade Lee
c4b5452672 Add code to deregister nodes and services from freeipa
A module has been added to delete hosts and clean up all the sub hosts
and services associated with those hosts in IPA.  It can be called
for a single host - as in the case of a scale_down operation, or for
multiple hosts - as in the case of a stack delete.  Ultimately, we
would like to add this functionality to ansible-freeipa.

Co-Authored-By: Grzegorz Grasza <xek@redhat.com>
Change-Id: Ib08f038773f8ca28d85a95921cdb522b5cd4de04
2020-03-25 16:42:21 +01:00