Skip to content

Commit

Permalink
Merge branch 'devel'
Browse files Browse the repository at this point in the history
  • Loading branch information
vbotka committed Apr 22, 2024
2 parents 6219b12 + ac50a9d commit ca2df51
Show file tree
Hide file tree
Showing 12 changed files with 54 additions and 36 deletions.
18 changes: 18 additions & 0 deletions changelog/CHANGELOG-v2.6.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,24 @@ vbotka.apache 2.6 Release Notes
.. contents:: Topics


2.6.1
=====

Release Summary
---------------
Bugfix release with updated docs.

Major Changes
-------------

Minor Changes
-------------
* Bump docs version.
* Fix docs formatting.
* Fix docs links.
* Fix handler notifications.


2.6.0
=====

Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
# The short X.Y version.
version = '2.6'
# The full version, including alpha/beta/rc tags.
release = '2.6.0'
release = '2.6.1'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
33 changes: 16 additions & 17 deletions docs/source/guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

User's guide
************
.. contents:: Topics
.. contents:: Contents
:depth: 3


Expand All @@ -16,13 +16,13 @@ Introduction

The role will install and configure Apache web server

* Ansible role: `Apache <https://galaxy.ansible.com/vbotka/apache/>`_
* Ansible role: `vbotka.apache <https://galaxy.ansible.com/vbotka/apache/>`_
* Supported systems: `FreeBSD <https://www.freebsd.org/>`_
* Requirements:

* `vbotka.ansible_lib <https://galaxy.ansible.com/vbotka/ansible_lib/>`__
* `jtyr.config_encoder_filters <https://galaxy.ansible.com/jtyr/config_encoder_filters/>`__
* `community.general <https://github.com/ansible-collections/community.general/>`__
* `vbotka.ansible_lib <https://galaxy.ansible.com/vbotka/ansible_lib>`_
* `jtyr.config_encoder_filters <https://galaxy.ansible.com/jtyr/config_encoder_filters/>`_
* `community.general <https://github.com/ansible-collections/community.general/>`_

The user is expected to have basic knowledge of Ansible

Expand All @@ -47,23 +47,22 @@ and install it ::

shell> ansible-galaxy role install vbotka.apache

Together with the role ``vbotka.apache`` dependent role `jtyr.config_encoder_filters
<https://galaxy.ansible.com/jtyr/config_encoder_filters>`_ will be installed (see
Together with the role `vbotka.apache`_ dependent role `jtyr.config_encoder_filters`_ will be installed (see
meta/main.yml). This role provides the filter `encode_apache
<https://github.com/jtyr/ansible-config_encoder_filters#id6>`_ used to encode YAML configuration
data to the Apache format.

Install the library `vbotka.ansible_lib <https://galaxy.ansible.com/vbotka/ansible_lib>`_ ::
Install the library `vbotka.ansible_lib`_, if necessary ::

shell> ansible-galaxy role install vbotka.ansible_lib

Install the collection `community.general <https://docs.ansible.com/ansible/latest/collections/community/general/>`_ ::
Install the collection `community.general`_ ::

shell> ansible-galaxy collection install community.general

.. seealso::

* For details on how to install specific versions from various sources see `Installing content <https://galaxy.ansible.com/docs/using/installing.html>`__.
* For details on how to install specific versions from various sources see `Installing content <https://galaxy.ansible.com/docs/using/installing.html>`_.

* Take a look at other roles ``shell> ansible-galaxy search --author=vbotka``

Expand Down Expand Up @@ -101,10 +100,10 @@ Simple playbook to install and configure Apache at srv.example.com (2)
.. seealso::

* For details see `Connection Plugins
<https://docs.ansible.com/ansible/latest/plugins/connection.html>`__ (4-5) and
<https://docs.ansible.com/ansible/latest/plugins/connection.html>`_ (4-5) and

* `Understanding Privilege Escalation
<https://docs.ansible.com/ansible/latest/user_guide/become.html#understanding-privilege-escalation>`__ (6-8).
<https://docs.ansible.com/ansible/latest/user_guide/become.html#understanding-privilege-escalation>`_ (6-8).


.. _ug_tags:
Expand Down Expand Up @@ -785,8 +784,8 @@ Notes
^^^^^
.. note::

* | The default value is
| ``apache_httpd_conf_modules:``
| ``- {module: "socache_shmcb_module", mod: "mod_socache_shmcb.so"}``
* For details see annotated source u:ref:`as_httpd-modules.yml`, or
* GitHub `httpd-modules.yml <https://github.com/vbotka/ansible-apache/blob/master/tasks/httpd-modules.yml>`_
| * The default value is
| ``apache_httpd_conf_modules:``
| ``- { module: socache_shmcb_module, mod: mod_socache_shmcb.so }``
| * For details see annotated source :ref:`as_httpd-modules.yml`, or
| * GitHub `httpd-modules.yml <https://github.com/vbotka/ansible-apache/blob/master/tasks/httpd-modules.yml>`_
2 changes: 1 addition & 1 deletion tasks/httpd-alias.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{{ item }}
{% endfor %}
backup: "{{ apache_backup_conf }}"
notify: reload apache
notify: Reload apache
when: apache_alias | length > 0

# EOF
2 changes: 1 addition & 1 deletion tasks/httpd-confd-includes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
mode: "{{ apache_data_mode }}"
backup: "{{ apache_backup_conf }}"
loop: "{{ al_include_confd_vars_list }}"
notify: reload apache
notify: Reload apache

# EOF
4 changes: 2 additions & 2 deletions tasks/httpd-confd-vhosts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
mode: "{{ apache_data_mode }}"
backup: "{{ apache_backup_conf }}"
loop: "{{ al_include_confd_vars_list }}"
notify: reload apache
notify: Reload apache

- name: "Httpd-confd-vhosts: Incl virtual hosts in {{ apache_conf_path ~ '/httpd.conf' }}"
ansible.builtin.lineinfile:
Expand All @@ -44,6 +44,6 @@
insertbefore: BOF
backup: "{{ apache_backup_conf }}"
loop: "{{ al_include_confd_vars_list }}"
notify: reload apache
notify: Reload apache

# EOF
2 changes: 1 addition & 1 deletion tasks/httpd-dirs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
loop: "{{ apache_directory_blocks }}"
loop_control:
label: "{{ item.Directory }}"
notify: reload apache
notify: Reload apache

# EOF
7 changes: 4 additions & 3 deletions tasks/httpd-modules.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

---
- name: "Httpd-modules: Load modules in {{ apache_conf_path ~ '/httpd.conf' }}"
ansible.builtin.lineinfile:
Expand All @@ -7,7 +8,7 @@
insertbefore: LoadModule
backup: "{{ apache_backup_conf }}"
loop: "{{ apache_httpd_conf_modules }}"
notify: restart apache
notify: Restart apache
when: item.present | d(true)

- name: "Httpd-modules: Unload modules in {{ apache_conf_path ~ '/httpd.conf' }}"
Expand All @@ -18,7 +19,7 @@
insertbefore: LoadModule
backup: "{{ apache_backup_conf }}"
loop: "{{ apache_httpd_conf_modules }}"
notify: restart apache
notify: Restart apache
when: not item.present | d(true)

- name: "Httpd-modules: Config PHP in {{ apache_conf_path ~ '/Includes/php.conf' }}"
Expand All @@ -39,7 +40,7 @@
mode: "0640"
create: true
backup: "{{ apache_backup_conf }}"
notify: restart apache
notify: Restart apache
when: apache_php | bool

# EOF
8 changes: 4 additions & 4 deletions tasks/httpd-ssl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# line: "{{ item.regexp }} {{ item.line }}"
backup: "{{ apache_backup_conf }}"
loop: "{{ apache_httpd_conf_ssl_extra }}"
notify: reload apache
notify: Reload apache

- name: "Httpd-ssl: Absent extra lines in {{ apache_conf_path ~ '/extra/httpd-ssl.conf' }}"
ansible.builtin.lineinfile:
Expand All @@ -22,22 +22,22 @@
regexp: "{{ item }}"
backup: "{{ apache_backup_conf }}"
loop: "{{ apache_httpd_conf_ssl_extra_absent }}"
notify: reload apache
notify: Reload apache

- name: "Httpd-ssl: SSL Listen in {{ apache_conf_path ~ '/extra/httpd-ssl.conf' }}"
ansible.builtin.lineinfile:
dest: "{{ apache_conf_path }}/extra/httpd-ssl.conf"
line: "{{ item }}"
backup: "{{ apache_backup_conf }}"
loop: "{{ apache_httpd_conf_ssl_listen }}"
notify: reload apache
notify: Reload apache

- name: "Httpd-ssl: SSL in {{ apache_conf_path ~ '/httpd.conf' }}"
ansible.builtin.lineinfile:
dest: "{{ apache_conf_path }}/httpd.conf"
line: "{{ item }}"
backup: "{{ apache_backup_conf }}"
loop: "{{ apache_httpd_conf_ssl }}"
notify: reload apache
notify: Reload apache

# EOF
4 changes: 2 additions & 2 deletions tasks/httpd-vhosts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
loop: "{{ apache_vhost }}"
loop_control:
label: "{{ item.ServerName }}"
notify: reload apache
notify: Reload apache

- name: "Httpd-vhosts: Incl virtual hosts in {{ apache_conf_path ~ '/httpd.conf' }}"
ansible.builtin.lineinfile:
Expand All @@ -34,6 +34,6 @@
loop: "{{ apache_vhost }}"
loop_control:
label: "{{ item.ServerName }}"
notify: reload apache
notify: Reload apache

# EOF
2 changes: 1 addition & 1 deletion tasks/httpd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
line: "{{ item.regexp }} {{ item.line }}"
backup: "{{ apache_backup_conf }}"
loop: "{{ apache_httpd_conf }}"
notify: reload apache
notify: Reload apache

# EOF
6 changes: 3 additions & 3 deletions tasks/rcconf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
line: '{{ item.key }}="{{ item.value }}"'
backup: "{{ apache_backup_conf }}"
loop: "{{ apache_rcconf }}"
notify: graceful apache
notify: Graceful apache

- name: "Rc_conf: Enable and Start Apache"
ansible.builtin.lineinfile:
dest: /etc/rc.conf
regexp: ^\s*{{ apache_service }}_enable\s*=(.*)$
line: '{{ apache_service }}_enable="YES"'
backup: "{{ apache_backup_conf }}"
notify: enable and start apache
notify: Enable and start apache
when: apache_enable | bool

- name: "Rc_conf: Disable and Stop Apache"
Expand All @@ -23,7 +23,7 @@
regexp: ^\s*{{ apache_service }}_enable\s*=(.*)$
line: '{{ apache_service }}_enable="NO"'
backup: "{{ apache_backup_conf }}"
notify: disable and stop apache
notify: Disable and stop apache
when: not apache_enable | bool

# EOF

0 comments on commit ca2df51

Please sign in to comment.