Skip to content

Commit

Permalink
Shorter task names.
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-de-bock committed Sep 20, 2023
1 parent 795cf2d commit 2f2a5ca
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions tasks/assert.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
- name: assert | Test if httpd_servername is set correctly
- name: assert | Test httpd_servername
ansible.builtin.assert:
that:
- httpd_servername is defined
- httpd_servername is string
- httpd_servername is not none
quiet: yes

- name: assert | Test if httpd_port is set correctly
- name: assert | Test httpd_port
ansible.builtin.assert:
that:
- httpd_port is defined
Expand All @@ -16,22 +16,22 @@
- httpd_port < 65536
quiet: yes

- name: assert | Test if https_ssl_enable is set correctly
- name: assert | Test https_ssl_enable
ansible.builtin.assert:
that:
- https_ssl_enable is defined
- https_ssl_enable is boolean
quiet: yes

- name: assert | Test if httpd_ssl_servername is set correctly
- name: assert | Test httpd_ssl_servername
ansible.builtin.assert:
that:
- httpd_ssl_servername is defined
- httpd_ssl_servername is string
- httpd_ssl_servername is not none
quiet: yes

- name: assert | Test if httpd_ssl_port is set correctly
- name: assert | Test httpd_ssl_port
ansible.builtin.assert:
that:
- httpd_ssl_port is defined
Expand All @@ -41,15 +41,15 @@
- httpd_ssl_port != httpd_port
quiet: yes

- name: assert | Test if httpd_locations is set correctly
- name: assert | Test httpd_locations
ansible.builtin.assert:
that:
- httpd_locations is iterable
quiet: yes
when:
- httpd_locations is defined

- name: assert | Test if item in httpd_locations is set correctly
- name: assert | Test item in httpd_locations
ansible.builtin.assert:
that:
- item.name is defined
Expand All @@ -68,15 +68,15 @@
when:
- httpd_locations is defined

- name: assert | Test if httpd_vhosts is set correctly
- name: assert | Test httpd_vhosts
ansible.builtin.assert:
that:
- httpd_vhosts is iterable
quiet: yes
when:
- httpd_vhosts is defined

- name: assert | Test if item in httpd_vhosts is set correctly
- name: assert | Test item in httpd_vhosts
ansible.builtin.assert:
that:
- item.name is defined
Expand All @@ -91,7 +91,7 @@
when:
- httpd_vhosts is defined

- name: assert | Test if item.create_docroot in httpd_vhosts is set correctly
- name: assert | Test item.create_docroot in httpd_vhosts
ansible.builtin.assert:
that:
- item.create_docroot is boolean
Expand All @@ -103,7 +103,7 @@
- httpd_vhosts is defined
- item.create_docroot is defined

- name: assert | Test if item.serveralias in httpd_vhosts is set correctly
- name: assert | Test item.serveralias in httpd_vhosts
ansible.builtin.assert:
that:
- item.serveralias is iterable
Expand All @@ -115,15 +115,15 @@
- httpd_vhosts is defined
- item.serveralias is defined

- name: assert | Test if httpd_directories is set correctly
- name: assert | Test httpd_directories
ansible.builtin.assert:
that:
- httpd_directories is iterable
quiet: yes
when:
- httpd_directories is defined

- name: assert | Test if item.name in httpd_directories is set correctly
- name: assert | Test item.name in httpd_directories
ansible.builtin.assert:
that:
- item.name is defined
Expand All @@ -139,7 +139,7 @@
when:
- httpd_directories is defined

- name: assert | Test if item.options in httpd_directories is set correctly
- name: assert | Test item.options in httpd_directories
ansible.builtin.assert:
that:
- item.options is iterable
Expand All @@ -151,7 +151,7 @@
- httpd_directories is defined
- item.options is defined

- name: assert | Test if item.allow_override in httpd_directories is set correctly
- name: assert | Test item.allow_override in httpd_directories
ansible.builtin.assert:
that:
- item.allow_override is string
Expand All @@ -164,14 +164,14 @@
- httpd_directories is defined
- item.allow_override is defined

- name: assert | Test if httpd_remove_example is set correctly
- name: assert | Test httpd_remove_example
ansible.builtin.assert:
that:
- httpd_remove_example is defined
- httpd_remove_example is boolean
quiet: yes

- name: assert | Test if httpd_additionnal_modules is set correctly
- name: assert | Test httpd_additionnal_modules
ansible.builtin.assert:
that:
- httpd_additionnal_modules is defined
Expand Down

0 comments on commit 2f2a5ca

Please sign in to comment.