Skip to content
Snippets Groups Projects
Verified Commit 37cedeb4 authored by Chris Croome's avatar Chris Croome
Browse files

Don't include acmesh role with molecule

parent 20673615
No related branches found
No related tags found
No related merge requests found
Pipeline #29337 failed
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
# #
# You should have received a copy of the GNU General Public License along with the Webarchitects Apache Ansible role. If not, see <https://www.gnu.org/licenses/>. # You should have received a copy of the GNU General Public License along with the Webarchitects Apache Ansible role. If not, see <https://www.gnu.org/licenses/>.
--- ---
apache: false
apache_user: www-data apache_user: www-data
apache_group: www-data apache_group: www-data
apache_document_root: /var/www/html apache_document_root: /var/www/html
......
...@@ -34,5 +34,73 @@ ...@@ -34,5 +34,73 @@
ansible.builtin.include_role: ansible.builtin.include_role:
name: "{{ lookup('ansible.builtin.env', 'CI_PROJECT_NAME') }}" name: "{{ lookup('ansible.builtin.env', 'CI_PROJECT_NAME') }}"
vars: # noqa var-naming[no-role-prefix] vars: # noqa var-naming[no-role-prefix]
openproject: true apache: true
apache_mods_disabled:
- ssl
apache_mods_enabled:
- access_compat
- alias
- auth_basic
- authn_core
- authn_file
- authz_core
- authz_host
- authz_user
- autoindex
- deflate
- dir
- env
- expires
- filter
- headers
- http2
- include
- mime
- mpm_event
- negotiation
- proxy
- proxy_fcgi
- proxy_http2
- proxy_http
- proxy_wstunnel
- reqtimeout
- remoteip
- rewrite
- setenvif
- socache_shmcb
- status
apache_conf_disabled:
- le
apache_conf_enabled:
- access_compat
- alias
- auth_basic
- authn_core
- authn_file
- authz_core
- authz_host
- authz_user
- autoindex
- deflate
- dir
- env
- expires
- filter
- headers
- http2
- include
- mime
- mpm_event
- negotiation
- proxy
- proxy_fcgi
- proxy_http2
- proxy_http
- proxy_wstunnel
- reqtimeout
- remoteip
- rewrite
- setenvif
- socache_shmcb
- status
... ...
...@@ -8,6 +8,13 @@ ...@@ -8,6 +8,13 @@
# #
# You should have received a copy of the GNU General Public License along with the Webarchitects Apache Ansible role. If not, see <https://www.gnu.org/licenses/>. # You should have received a copy of the GNU General Public License along with the Webarchitects Apache Ansible role. If not, see <https://www.gnu.org/licenses/>.
--- ---
- name: Apache role skipped
ansible.builtin.debug:
msg: "The tasks in the Apache role are not being run since the apache variables is not true."
when: not apache | bool
tags:
- apache
- name: Install and configure Apache - name: Install and configure Apache
block: block:
...@@ -157,6 +164,7 @@ ...@@ -157,6 +164,7 @@
state: restarted state: restarted
when: ( "Syntax OK" in apache_configtest.stderr ) or ( apache_configtest.rc == 0 ) when: ( "Syntax OK" in apache_configtest.stderr ) or ( apache_configtest.rc == 0 )
when: apache | bool
tags: tags:
- apache - apache
... ...
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment