mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
[PR #6152/11c7611c backport][stable-6] More true/false normalization (#6153)
More true/false normalization (#6152)
* More true/false normalization.
* Boolean do not need explicit choices.
* One more.
* Fix type argument.
(cherry picked from commit 11c7611ced
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
186b4200f6
commit
47514e1401
48 changed files with 203 additions and 219 deletions
|
@ -14,25 +14,25 @@
|
|||
include_vars: '{{ ansible_os_family }}.yml'
|
||||
|
||||
- name: Install OpenLDAP server and tools
|
||||
become: True
|
||||
become: true
|
||||
package:
|
||||
name: '{{ item }}'
|
||||
loop: '{{ openldap_packages_name }}'
|
||||
|
||||
- name: Install python-ldap (Python 3)
|
||||
become: True
|
||||
become: true
|
||||
package:
|
||||
name: '{{ python_ldap_package_name_python3 }}'
|
||||
when: ansible_python_version is version('3.0', '>=')
|
||||
|
||||
- name: Install python-ldap (Python 2)
|
||||
become: True
|
||||
become: true
|
||||
package:
|
||||
name: '{{ python_ldap_package_name }}'
|
||||
when: ansible_python_version is version('3.0', '<')
|
||||
|
||||
- name: Make sure OpenLDAP service is stopped
|
||||
become: True
|
||||
become: true
|
||||
shell: 'cat /var/run/slapd/slapd.pid | xargs -r kill -9 '
|
||||
|
||||
- name: Debconf
|
||||
|
@ -45,14 +45,14 @@
|
|||
creates: "/root/slapd_configured"
|
||||
|
||||
- name: Start OpenLDAP service
|
||||
become: True
|
||||
become: true
|
||||
service:
|
||||
name: '{{ openldap_service_name }}'
|
||||
enabled: True
|
||||
enabled: true
|
||||
state: started
|
||||
|
||||
- name: Copy initial config ldif file
|
||||
become: True
|
||||
become: true
|
||||
copy:
|
||||
src: 'files/{{ item }}'
|
||||
dest: '/tmp/{{ item }}'
|
||||
|
@ -67,6 +67,6 @@
|
|||
shell: "ldapmodify -Y EXTERNAL -H ldapi:/// -f /tmp/rootpw_cnconfig.ldif"
|
||||
|
||||
- name: Add initial config
|
||||
become: True
|
||||
become: true
|
||||
shell: 'ldapadd -H ldapi:/// -x -D "cn=admin,dc=example,dc=com" -w Test1234! -f /tmp/initial_config.ldif'
|
||||
when: ansible_os_family in ['Ubuntu', 'Debian']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue