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

fix for running role in a chroot

parent 90204f00
No related branches found
No related tags found
No related merge requests found
Pipeline #33068 passed
......@@ -31,7 +31,7 @@ repos:
name: Markdown Lint
# https://github.com/ansible/ansible-lint/releases
- repo: https://github.com/ansible/ansible-lint.git
rev: v24.2.1
rev: v24.2.2
hooks:
- id: ansible-lint
name: Ansible Lint
......
......@@ -51,7 +51,10 @@
ansible.builtin.service:
name: apache2
state: restarted
when: apache_mpm_event_enabled.changed
when:
- apache_mpm_event_enabled.changed
- apache_init is defined
- apache_init == "systemd"
when:
- ansible_local.a2query.mpm == "prefork"
......@@ -80,7 +83,10 @@
ansible.builtin.service:
name: apache2
state: restarted
when: apache_mpm_prefork_enabled.changed
when:
- apache_mpm_prefork_enabled.changed
- apache_init is defined
- apache_init == "systemd"
when:
- ansible_local.a2query.mpm == "event"
......
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