freeipa / ansible-freeipa

Ansible roles and modules for FreeIPA
GNU General Public License v3.0
504 stars 231 forks source link

SELINUX_Works is of type <type 'str'> and we were unable to convert to bool #1313

Open mlaurent205 opened 3 weeks ago

mlaurent205 commented 3 weeks ago

AWS Ubuntu 18.04.6 LTS (GNU/Linux 4.15.0-189-generic x86_64) and Ubuntu 18.04.6 LTS (GNU/Linux 5.4.0-1135-aws x86_64)

https://github.com/freeipa/ansible-freeipa/blob/16a4eb81ce8ac4942fb9d336a99220c2ae8e14b6/roles/ipaclient/library/ipaclient_test.py#L502

TASK [freeipa.ansible_freeipa.ipaclient : Install - Create IPA NSS database] *** Tuesday 12 November 2024 09:44:27 -0600 (0:00:00.034) 0:00:26.251 ** fatal: [aws-freeipa-ubuntu-staging-1804.wpnops.cloud]: FAILED! => {"changed": false, "msg": "argument 'selinux_works' is of type <type 'str'> and we were unable to convert to bool: The value '' is not a valid boolean. Valid booleans include: 0, 'on', 'f', 'false', 1, 'no', 'n', '1', '0', 't', 'y', 'off', 'yes', 'true'"}

rjeffman commented 21 hours ago

The error seems to be on your playbook, as this message is generated by Ansible when it evaluates arguments.

selinux_works is defined as a bool, and used as a bool in the code.

Do you have selinux_works: '' (or with anything that evals to an empty string) on your playbook?

mlaurent205 commented 5 hours ago

I do not have such variables defined, it is not within the variables that can be used in the role.

El lun, 2 dic 2024 a la(s) 7:27 p.m., Rafael Guterres Jeffman ( @.***) escribió:

The error seems to be on your playbook, as this message is generated by Ansible when it evaluates arguments.

selinux_works is defined as a bool, and used as a bool in the code.

Do you have selinux_works: '' (or with anything that evals to an empty string) on your playbook?

— Reply to this email directly, view it on GitHub https://github.com/freeipa/ansible-freeipa/issues/1313#issuecomment-2513338962, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMGE5L4LR2I4CTLMFYCH5B32DUCG7AVCNFSM6AAAAABRUO32HGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJTGMZTQOJWGI . You are receiving this because you authored the thread.Message ID: @.***>

-- Ing. Manuel Laurent Obando Administrador de Infraestructura de TI Cel. 6168-1292

rjeffman commented 4 hours ago

Both on ansible-freeipa and on FreeIPA the only values this variable receives is True or False, as the variable holds a boolean value.

We need more info to have any clue on what is going on.

mlaurent205 commented 3 hours ago

Ok, so I'm going to run the role execution with that variable as false. Since my provisioning disables it.

El mar, 3 dic 2024 a la(s) 11:48 a.m., Rafael Guterres Jeffman ( @.***) escribió:

Both on ansible-freeipa and on FreeIPA the only values this variable receives is True or False, as the variable holds a boolean value.

We need more info to have any clue on what is going on.

— Reply to this email directly, view it on GitHub https://github.com/freeipa/ansible-freeipa/issues/1313#issuecomment-2515220895, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMGE5L4FSWEH352PWFSZMH32DXVHNAVCNFSM6AAAAABRUO32HGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJVGIZDAOBZGU . You are receiving this because you authored the thread.Message ID: @.***>

-- Ing. Manuel Laurent Obando Administrador de Infraestructura de TI Cel. 6168-1292