mirror of
				https://git.lapiole.org/dani/ansible-roles.git
				synced 2025-10-30 18:31:28 +01:00 
			
		
		
		
	Update to 2022-03-17 19:00
This commit is contained in:
		| @@ -4,6 +4,13 @@ | ||||
|   package: name={{ ldap2pg_packages }} | ||||
|   tags: pg | ||||
|  | ||||
| - name: Patch ldap2pg to specify global cacert | ||||
|   patch: src=ldap2pg_cacert.diff dest=/usr/lib/python2.7/site-packages/ldap2pg/ldap.py | ||||
|   when: | ||||
|     - ansible_os_family == 'RedHat' | ||||
|     - ansible_distribution_major_version is version('8', '<') | ||||
|   tags: pg | ||||
|  | ||||
| - name: Install systemd unit | ||||
|   template: src=ldap2pg.{{ item }}.j2 dest=/etc/systemd/system/ldap2pg.{{ item }} | ||||
|   loop: | ||||
| @@ -17,5 +24,5 @@ | ||||
|  | ||||
| - name: Reload systemd | ||||
|   systemd: daemon_reload=True | ||||
|   when: ldap2Pg_units.results | selectattr('changed','equalto',True) | list | length > 0 | ||||
|   when: ldap2pg_units.results | selectattr('changed','equalto',True) | list | length > 0 | ||||
|   tags: pg | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| --- | ||||
|  | ||||
| - name: Handle ldap2pg timer | ||||
|   systemd: name=ldap2pg.timer state={{ (ldap2pg_sync_freq == 'never') | ternary('stopped', 'started') }} enabled={{ (ldap2pg_sync_freq == 'never') | ternary(False, True) }} | ||||
|   systemd: name=ldap2pg.timer state={{ ldap2pg_dry_mode | ternary('stopped', 'started') }} enabled={{ ldap2pg_dry_mode | ternary(False, True) }} | ||||
|   tags: pg | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Daniel Berteaud
					Daniel Berteaud