mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-06-09 18:25:53 +00:00
Currently, upstream CI test documentation against different Ansible versions, but playbook tests are only executed with Ansible 2.9 series. This patch add support for running playbook tests against Ansible 2.9, ansible-core 2.11, and against latest version of Ansible. As running all the tests for every PR would take too long, the tests for every PR use only Anisble 2.9, and are executed on Fedora-latest and CentOS 7 and 8. A new pipeline for nightly tests was added, which runs the tests in the same distros, using Ansible 2.9, latest and Ansible-core 2.11.
28 lines
728 B
YAML
28 lines
728 B
YAML
---
|
|
- name: Converge
|
|
hosts: all
|
|
tasks:
|
|
- include_tasks: prepare-common.yml
|
|
|
|
# In some distros DS won't start up after reboot
|
|
# This is due to a problem in 389-ds. See tickets:
|
|
# * https://pagure.io/389-ds-base/issue/47429
|
|
# * https://pagure.io/389-ds-base/issue/51039
|
|
#
|
|
# To avoid this problem we create the directories before starting IPA.
|
|
- name: Ensure lock dirs for DS exists
|
|
ansible.builtin.file:
|
|
state: directory
|
|
owner: dirsrv
|
|
group: dirsrv
|
|
path: "{{ item }}"
|
|
mode: 0770
|
|
loop:
|
|
- /var/lock/dirsrv/
|
|
- /var/lock/dirsrv/slapd-TEST-LOCAL/
|
|
|
|
- name: Ensure IPA server is up an running
|
|
ansible.builtin.service:
|
|
name: ipa
|
|
state: started
|