mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-06-15 12:27:38 +00:00
apache2_site: apply review suggestions
This commit is contained in:
parent
7156a4b8f7
commit
deccd7a02e
3 changed files with 12 additions and 11 deletions
|
|
@ -4,3 +4,8 @@
|
|||
|
||||
azp/posix/3
|
||||
destructive
|
||||
|
||||
skip/rhel
|
||||
skip/freebsd
|
||||
skip/macos
|
||||
skip/alpine
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@
|
|||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
- name: test apache2_site
|
||||
|
||||
when: ansible_facts.os_family == 'Debian'
|
||||
|
||||
block:
|
||||
- name: get list of enabled sites before tests
|
||||
ansible.builtin.command: ls /etc/apache2/sites-enabled/
|
||||
|
|
@ -16,9 +19,8 @@
|
|||
changed_when: false
|
||||
|
||||
- name: include actual tests
|
||||
include_tasks: actualtest.yml
|
||||
ansible.builtin.include_tasks: actualtest.yml
|
||||
|
||||
always:
|
||||
- name: get list of enabled sites after tests
|
||||
ansible.builtin.command: ls /etc/apache2/sites-enabled/
|
||||
register: sites_after
|
||||
|
|
@ -36,5 +38,3 @@
|
|||
ansible.builtin.assert:
|
||||
that: sites_before.stdout == sites_after.stdout
|
||||
|
||||
when: ansible_facts.os_family == 'Debian'
|
||||
# a2ensite/a2dissite are Debian/Ubuntu specific tools
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue