mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-30 03:14:42 +00:00
Login shell is called defaultshell and not defaultlogin
The example didn't work for me with the following error (on freeipa 4.9.8):
TASK [display default login shell] **************************************************************************************************
fatal: [freeipa1.example.org]: FAILED! => {"msg": "
The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'defaultlogin'
Using the correct variable defaultshell works for me.
This commit is contained in:
@@ -56,12 +56,12 @@ Example playbook to read config options:
|
|||||||
register: result
|
register: result
|
||||||
- name: display default login shell
|
- name: display default login shell
|
||||||
debug:
|
debug:
|
||||||
msg: '{{ result.config.defaultlogin }}'
|
msg: '{{ result.config.defaultshell }}'
|
||||||
|
|
||||||
- name: ensure defaultloginshell and maxusernamelength are set as required
|
- name: ensure defaultloginshell and maxusernamelength are set as required
|
||||||
ipaconfig:
|
ipaconfig:
|
||||||
ipaadmin_password: password
|
ipaadmin_password: password
|
||||||
defaultlogin: /bin/bash
|
defaultshell: /bin/bash
|
||||||
maxusername: 64
|
maxusername: 64
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user