mirror of
				https://github.com/ansible-collections/community.general.git
				synced 2025-10-26 13:56:09 -07:00 
			
		
		
		
	[PR #7705/aea238e5 backport][stable-7] Fix integration tests on Arch (#7707)
Fix integration tests on Arch (#7705)
* Fix ejabberd_user integration tests on Arch Linux.
* Fix odbc integration tests on Arch Linux.
* The old name of systemd_service is systemd.
(cherry picked from commit aea238e5d1)
Co-authored-by: Felix Fontein <felix@fontein.de>
	
	
This commit is contained in:
		
					parent
					
						
							
								eadf1320df
							
						
					
				
			
			
				commit
				
					
						8539c534e3
					
				
			
		
					 2 changed files with 42 additions and 0 deletions
				
			
		|  | @ -33,6 +33,22 @@ | ||||||
|     state: present |     state: present | ||||||
|   notify: Remove ejabberd |   notify: Remove ejabberd | ||||||
| 
 | 
 | ||||||
|  | - name: Make runnable on Arch | ||||||
|  |   community.general.ini_file: | ||||||
|  |     path: /usr/lib/systemd/system/ejabberd.service | ||||||
|  |     section: Service | ||||||
|  |     option: "{{ item }}" | ||||||
|  |     state: absent | ||||||
|  |   loop: | ||||||
|  |     - PrivateDevices | ||||||
|  |     - AmbientCapabilities | ||||||
|  |   when: ansible_distribution == 'Archlinux' | ||||||
|  | 
 | ||||||
|  | - name: Make installable on Arch | ||||||
|  |   systemd: | ||||||
|  |     daemon_reload: true | ||||||
|  |   when: ansible_distribution == 'Archlinux' | ||||||
|  | 
 | ||||||
| - ansible.builtin.service: | - ansible.builtin.service: | ||||||
|     name: ejabberd |     name: ejabberd | ||||||
|     state: started |     state: started | ||||||
|  |  | ||||||
|  | @ -127,6 +127,32 @@ | ||||||
|     seconds: 5 |     seconds: 5 | ||||||
|   when: ansible_os_family == 'Suse' |   when: ansible_os_family == 'Suse' | ||||||
| 
 | 
 | ||||||
|  | - name: Make installable on Arch | ||||||
|  |   community.general.ini_file: | ||||||
|  |     path: /usr/lib/systemd/system/postgresql.service | ||||||
|  |     section: Service | ||||||
|  |     option: "{{ item }}" | ||||||
|  |     state: absent | ||||||
|  |   loop: | ||||||
|  |     - PrivateTmp | ||||||
|  |     - ProtectHome | ||||||
|  |     - ProtectSystem | ||||||
|  |     - NoNewPrivileges | ||||||
|  |     - ProtectControlGroups | ||||||
|  |     - ProtectKernelModules | ||||||
|  |     - ProtectKernelTunables | ||||||
|  |     - PrivateDevices | ||||||
|  |     - RestrictAddressFamilies | ||||||
|  |     - RestrictNamespaces | ||||||
|  |     - RestrictRealtime | ||||||
|  |     - SystemCallArchitectures | ||||||
|  |   when: ansible_distribution == 'Archlinux' | ||||||
|  | 
 | ||||||
|  | - name: Make installable on Arch | ||||||
|  |   systemd: | ||||||
|  |     daemon_reload: true | ||||||
|  |   when: ansible_distribution == 'Archlinux' | ||||||
|  | 
 | ||||||
| - name: Initialize postgres (Suse) | - name: Initialize postgres (Suse) | ||||||
|   service: name=postgresql state=started |   service: name=postgresql state=started | ||||||
|   when: ansible_os_family == 'Suse' |   when: ansible_os_family == 'Suse' | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue