jfenal-zz / ansible-role-install-httpd

Install httpd and setup secure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install httpd

Install httpd and setup below.

  • Reduce infomation in response
    Add the line "ServerTokens Prod"
  • Disable directory listing
    Delete "Options Indexes"
  • Disable welcome page
    Delete welcome.conf

Note: This setting was tested in version 2.4.6 of httpd.

Requirements

none

Role Variables

# switch httpd service enabled/disabled
httpd_service_enabled: yes

Dependencies

none

Example Playbook

- hosts: servers
  roles:
     - { role: tsyki.install-httpd, httpd_service_enabled: no }

License

BSD

Author Information

Toshiyuki Imaizumi

About

Install httpd and setup secure