Skip to content
Snippets Groups Projects
Commit 4c695a8e authored by Chris Hines's avatar Chris Hines
Browse files

fix an error detecting the ppolicy and enable the auxposixgroup schema

Former-commit-id: 7519d863
parent 27bdac56
No related branches found
No related tags found
No related merge requests found
dn: cn=auxPosixGroup,cn=schema,cn=config
objectClass: olcSchemaConfig
cn: auxPosixGroup
olcObjectClasses: ( 1.3.6.1.4.1.1.1.1.2.1 NAME 'auxPosixGroup' DESC 'Abstraction of a group of accounts' SUP top AUXILIARY MUST gidNumber MAY ( userPassword $ memberUid $ description ) )
--- ---
- name: include vars
include_vars:
file: "{{ ansible_distribution }}_{{ ansible_distribution_version }}_{{ ansible_architecture }}.yml"
- include_vars: "{{ ansible_distribution }}_{{ ansible_distribution_version }}_{{ ansible_architecture }}.yml" - name: include vars2
- include_vars: "{{ ansible_distribution }}.yml" include_vars:
file: "{{ ansible_distribution }}.yml"
- name: install system packages apt - name: install system packages apt
apt: name={{ item }} state=installed update_cache=true apt: name={{ item }} state=installed update_cache=true
sudo: true sudo: true
with_items: system_packages with_items: "{{ system_packages }}"
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'
- name: install system packages yum - name: install system packages yum
yum: name={{ item }} state=installed yum: name={{ item }} state=installed
sudo: true sudo: true
with_items: system_packages with_items: "{{ system_packages }}"
when: ansible_os_family == 'RedHat' when: ansible_os_family == 'RedHat'
- name: Fixed default configuration - name: Fixed default configuration
...@@ -139,6 +143,16 @@ ...@@ -139,6 +143,16 @@
- inetorgperson - inetorgperson
ignore_errors: true ignore_errors: true
sudo: true sudo: true
- name: copy the auxposixgroup schema
copy: src="files/auxposixgroup.ldif" dest="{{ ldapDir }}/schema/auxposixgroup.ldif"
become: True
become_user: root
- name: load the auxposixgroup schema
shell: ldapadd -Y EXTERNAL -H ldapi:/// -f "{{ ldapDir }}/schema/auxposixgroup.ldif" -D cn=config
become_user: root
become: True
- name: check ppolicy module loaded - name: check ppolicy module loaded
shell: slapcat -b cn=config | grep "olcModuleLoad. {.*}ppolicy" shell: slapcat -b cn=config | grep "olcModuleLoad. {.*}ppolicy"
...@@ -152,7 +166,7 @@ ...@@ -152,7 +166,7 @@
when: ppolicyModuleLoaded|failed when: ppolicyModuleLoaded|failed
- name: check ppolicy overlay config - name: check ppolicy overlay config
shell: "slapcat -b cn=config | grep 'dn: olcOverlay=ppolicy,olcDatabase={.*}.db,cn=config'" shell: "slapcat -b cn=config | grep 'dn: olcOverlay={.*}ppolicy,olcDatabase={.*}.db,cn=config'"
ignore_errors: true ignore_errors: true
sudo: true sudo: true
register: ppolicyOverlayConfigured register: ppolicyOverlayConfigured
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment