Ansible role. Install and configure Apache.
Documentation at readthedocs.io
Feel free to share your feedback and report issues.
Supported platformsThis role has been developed and tested with
Requirements CollectionsReview defaults and examples in vars. By default SSL is off.
apache_ssl: False
Certificates are needed to enable SSL.
apache_ssl: True apache_version: "24" apache_SSLCertificateFile: "/usr/local/etc/apache{{ apache_version }}/server.crt" apache_SSLCertificateKeyFile: "/usr/local/etc/apache{{ apache_version }}/server.key"
Virtual hosts are configured with optional redirection to SSL. By default virtual hosts for ports 80 and 443 will be created and port 80 permanently redirected to 443. Example is available in vars.
Workflowshell> ansible webserver -e 'ansible_shell_type=csh ansible_shell_executable=/bin/csh' -a 'sudo pw usermod freebsd -s /bin/sh'
shell> ansible-galaxy role install vbotka.apache
Fit variables
Create playbook and inventory
shell> cat apache.yml --- - hosts: webserver roles: - vbotka.apache
shell> cat hosts [webserver] <webserver-ip-or-fqdn> [webserver:vars] ansible_connection=ssh ansible_user=freebsd ansible_become=true ansible_become_method=sudo ansible_python_interpreter=/usr/local/bin/python3.9 ansible_perl_interpreter=/usr/local/bin/perl
shell> ansible-playbook apache.yml --syntax-check
shell> ansible-playbook apache.yml -t apache_debug -e apache_debug=true
shell> ansible-playbook apache.yml -t apache_pkg -e apache_install=true
shell> ansible-playbook apache.yml --check --diff
shell> ansible-playbook apache.yml
Use the configuration file .ansible-lint.local when running ansible-lint. Some rules might be disabled and some warnings might be ignored. See the notes in the configuration file.
shell> ansible-lint -c .ansible-lint.localReferences
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4