我正在尝试创建可创建LDAP服务器的ansible剧本。 这是我的代码:
---
- hosts: ldapserver
become: true
become_user: root
roles:
- slapd-config
slap_dmodules_path: /usr/lib/ldap
slapd_olc_rootdn_password: {{'PWfromCLI'}}
slapd_mdb_rootdn_password: {{'PWfromCLI'}}
slapd_monitor_rootdn_password: {{'PWfromCLI'}}
slapd_additional_modules: [ 'memberof' ]
slapd_mdb_config:
olcSuffix: "dc=example,dc=com"
slapd_mdb_overlays:
memberof:
olcOverlay: memberof
objectClass: olcMemberOf
olcMemberOfDangling: ignore
我收到以下错误:
The error appears to have been in '/playbook.yml': line 7, column 23, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- slapd-config
slap_dmodules_path: /usr/lib/ldap
^ here
我不明白问题是什么以及如何解决。你能帮我吗? <3珍妮佛
答案 0 :(得分:0)
看来这应该是slapd_modules,我认为您拼写错误或空格有问题