1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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.
This commit is contained in:
Felix Fontein 2023-12-09 17:21:05 +01:00 committed by GitHub
parent 2b64ef2a62
commit aea238e5d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 0 deletions

View file

@ -33,6 +33,22 @@
state: present
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:
name: ejabberd
state: started

View file

@ -127,6 +127,32 @@
seconds: 5
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)
service: name=postgresql state=started
when: ansible_os_family == 'Suse'