mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-03 23:14:02 -07:00
Some checks failed
EOL CI / EOL Sanity (Ⓐ2.16) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.16+py2.7) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.16+py3.11) (push) Has been cancelled
EOL CI / EOL Units (Ⓐ2.16+py3.6) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.16+alpine3+py:azp/posix/1/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.16+alpine3+py:azp/posix/2/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.16+alpine3+py:azp/posix/3/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.16+fedora38+py:azp/posix/1/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.16+fedora38+py:azp/posix/2/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.16+fedora38+py:azp/posix/3/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.16+opensuse15+py:azp/posix/1/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.16+opensuse15+py:azp/posix/2/) (push) Has been cancelled
EOL CI / EOL I (Ⓐ2.16+opensuse15+py:azp/posix/3/) (push) Has been cancelled
nox / Run extra sanity tests (push) Has been cancelled
CI: Add Debian 13 Trixie (#10638)
* Add Debian 13 Trixie to CI.
* Add adjustments.
* Disable one apache2_module test for Debian 13.
* Disable ejabberd_user test on Debian 13.
* Fix paramiko install.
* Skip cloud_init_data_facts on Debian 13.
* Fix postgresql setup.
* Fix timezone tests.
(cherry picked from commit 07ce00417d
)
Co-authored-by: Felix Fontein <felix@fontein.de>
127 lines
3.4 KiB
YAML
127 lines
3.4 KiB
YAML
---
|
|
####################################################################
|
|
# WARNING: These are designed specifically for Ansible tests #
|
|
# and should not be used as examples of how to write Ansible roles #
|
|
####################################################################
|
|
|
|
# Copyright (c) Ansible Project
|
|
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
- name: Bail out if not supported
|
|
ansible.builtin.meta: end_play
|
|
# TODO: remove Archlinux from the list
|
|
# TODO: remove Ubuntu 24.04 (noble) from the list
|
|
# TODO: remove Debian 13 (Trixie) from the list
|
|
when: >
|
|
ansible_distribution in ('Alpine', 'openSUSE Leap', 'CentOS', 'Fedora', 'Archlinux')
|
|
or (ansible_distribution == 'Ubuntu' and ansible_distribution_release in ['noble'])
|
|
or (ansible_distribution == 'Debian' and ansible_distribution_major_version == '13')
|
|
|
|
- name: Remove ejabberd
|
|
ansible.builtin.package:
|
|
name: ejabberd
|
|
state: absent
|
|
|
|
- name: Create user without ejabberdctl installed
|
|
community.general.ejabberd_user:
|
|
host: localhost
|
|
username: alice
|
|
password: pa$$w0rd
|
|
state: present
|
|
register: user_no_ejabberdctl
|
|
ignore_errors: true
|
|
|
|
- name: Install ejabberd
|
|
ansible.builtin.package:
|
|
name: ejabberd
|
|
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
|
|
|
|
- name: Create user alice (check)
|
|
community.general.ejabberd_user:
|
|
host: localhost
|
|
username: alice
|
|
password: pa$$w0rd
|
|
state: present
|
|
check_mode: true
|
|
register: user_alice_check
|
|
|
|
- name: Create user alice
|
|
community.general.ejabberd_user:
|
|
host: localhost
|
|
username: alice
|
|
password: pa$$w0rd
|
|
state: present
|
|
register: user_alice
|
|
|
|
- name: Create user alice (idempotency)
|
|
community.general.ejabberd_user:
|
|
host: localhost
|
|
username: alice
|
|
password: pa$$w0rd
|
|
state: present
|
|
register: user_alice_idempot
|
|
|
|
- name: Create user alice (change password)
|
|
community.general.ejabberd_user:
|
|
host: localhost
|
|
username: alice
|
|
password: different_pa$$w0rd
|
|
state: present
|
|
register: user_alice_chgpw
|
|
|
|
- name: Remove user alice (check)
|
|
community.general.ejabberd_user:
|
|
host: localhost
|
|
username: alice
|
|
state: absent
|
|
register: remove_alice_check
|
|
check_mode: true
|
|
|
|
- name: Remove user alice
|
|
community.general.ejabberd_user:
|
|
host: localhost
|
|
username: alice
|
|
state: absent
|
|
register: remove_alice
|
|
|
|
- name: Remove user alice (idempotency)
|
|
community.general.ejabberd_user:
|
|
host: localhost
|
|
username: alice
|
|
state: absent
|
|
register: remove_alice_idempot
|
|
|
|
- name: Assertions
|
|
ansible.builtin.assert:
|
|
that:
|
|
- user_no_ejabberdctl is failed
|
|
- "'Failed to find required executable' in user_no_ejabberdctl.msg"
|
|
- user_alice_check is changed
|
|
- user_alice is changed
|
|
- user_alice_idempot is not changed
|
|
- user_alice_chgpw is changed
|
|
- remove_alice_check is changed
|
|
- remove_alice is changed
|
|
- remove_alice_idempot is not changed
|