# The NTP configuration can not be touched on pre-installed client:
if options.no_ntp or options.ntp_servers or options.ntp_pool:
ansible_module.fail_json(
msg="NTP configuration cannot be updated during promotion")
Shouldn't that be if not options.no_ntp or... as this variable is True when NTP is not being configured.
When setting up an IPA replica with
ipaclient_no_ntp: true
I get the error:Looking at the line: https://github.com/freeipa/ansible-freeipa/blob/f1a6f444770a4d23c87b77d78d1c26172ae1c823/roles/ipareplica/library/ipareplica_test.py#L520
Shouldn't that be
if not options.no_ntp or...
as this variable isTrue
when NTP is not being configured.