Skip to content

Commit

Permalink
Merge pull request #11 from hansmorb/master
Browse files Browse the repository at this point in the history
Feature: Remove default "it works" page
  • Loading branch information
robertdebock authored Sep 23, 2021
2 parents 8968357 + 5bd3124 commit 0e9d789
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ httpd_openssl_crt: "{{ httpd_openssl_crt_directory }}/apache-httpd.crt"

# SSL Key
httpd_openssl_key: "{{ httpd_openssl_key_directory }}/apache-httpd.key"

# If the "it works" page should be kept
httpd_remove_example: no
7 changes: 7 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@
- name: flush handlers
ansible.builtin.meta: flush_handlers

- name: removing default html
ansible.builtin.file:
path: "{{ httpd_data_directory }}/index.html"
state: absent
when:
- httpd_remove_example

- name: start and enable httpd
ansible.builtin.service:
name: "{{ httpd_service }}"
Expand Down

0 comments on commit 0e9d789

Please sign in to comment.