ansible-freeipa icon indicating copy to clipboard operation
ansible-freeipa copied to clipboard

IPA Replica install fails when `ipaclient_no_ntp` is set true

Open Aethylred opened this issue 2 years ago • 3 comments

When setting up an IPA replica with ipaclient_no_ntp: true I get the error:

TASK [freeipa.ansible_freeipa.ipareplica : Install - Replica installation test] ***********************************************************************************************************************************************************************************************************
Thursday 09 November 2023  01:50:23 +0000 (0:00:00.019)       0:00:19.524 ***** 
fatal: [ipa02]: FAILED! => {"changed": false, "msg": "NTP configuration cannot be updated during promotion"}

Looking at the line: https://github.com/freeipa/ansible-freeipa/blob/f1a6f444770a4d23c87b77d78d1c26172ae1c823/roles/ipareplica/library/ipareplica_test.py#L520

 # 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.

Aethylred avatar Nov 09 '23 01:11 Aethylred

This only happens when if the replica is already installed as a client

Aethylred avatar Nov 10 '23 04:11 Aethylred

+1. Face similar issue.

FF186 avatar Feb 05 '24 12:02 FF186

+1 should be tagged as a bug. The workaround was to remove the no_ntp=true . These double negatives.

EmptyByte avatar Jul 13 '24 06:07 EmptyByte