diff options
author | Robin Roth <robin@rroth.de> | 2017-04-04 20:12:06 +0200 |
---|---|---|
committer | Brian Coca <bcoca@users.noreply.github.com> | 2017-04-04 14:12:06 -0400 |
commit | 6f40cb9647057d08acb96ab17fbfe05c130bc204 (patch) | |
tree | 93e8f03d47c62196cb22b3edbde6389b4a1692f6 /test/integration/targets/apache2_module | |
parent | 7e3af115ce949890349fbd3815ab1e13a2cf92a9 (diff) | |
download | ansible-6f40cb9647057d08acb96ab17fbfe05c130bc204.tar.gz |
Add workaround for evasive in apache2_module (#22649)
* Add workaround for evasive in apache2_module
* Fixes #22635
* Clean up workarounds for php/shib
* Add test for evasive workaround
* Remove use of re module, since all searches work with native python
* Add unit tests to apache2_module name replacements
Go back to using re package where needed
* Rename replace_name to create_apache_identifier
Diffstat (limited to 'test/integration/targets/apache2_module')
-rw-r--r-- | test/integration/targets/apache2_module/tasks/actualtest.yml | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/test/integration/targets/apache2_module/tasks/actualtest.yml b/test/integration/targets/apache2_module/tasks/actualtest.yml index fc0408a40b..928876ff96 100644 --- a/test/integration/targets/apache2_module/tasks/actualtest.yml +++ b/test/integration/targets/apache2_module/tasks/actualtest.yml @@ -15,9 +15,12 @@ - name: install apache via apt apt: - name: apache2 + name: "{{item}}" state: present when: "ansible_os_family == 'Debian'" + with_items: + - apache2 + - libapache2-mod-evasive - name: install apache via zypper zypper: @@ -84,4 +87,11 @@ name: autoindex state: absent force: True - when: "ansible_os_family != 'Suse'" + when: "ansible_os_family == 'Debian'" + + +- name: enable evasive module, test https://github.com/ansible/ansible/issues/22635 + apache2_module: + name: evasive + state: present + when: "ansible_os_family == 'Debian'" |