Role - kubeinit_apache

Role Documentation

Welcome to the “kubeinit_apache” role documentation.

Role Defaults

This section highlights all of the defaults and variables set within the “kubeinit_apache” role.

# All variables intended for modification should be placed in this file.

# All variables within this role should have a prefix of "kubeinit_apache_"
kubeinit_apache_debug: '{{ (ansible_verbosity | int) >= 2 | bool }}'
kubeinit_apache_hide_sensitive_logs: true

kubeinit_apache_service_name: "{% if ( kubeinit_common_cluster_distro == 'rke' or\
  \ kubeinit_common_cluster_distro == 'cdk' ) %}apache2{% else %}httpd{% endif %}"
kubeinit_apache_config_file_ports: "{% if ( kubeinit_common_cluster_distro == 'rke'\
  \ or kubeinit_common_cluster_distro == 'cdk' ) %}/etc/apache2/ports.conf{% else\
  \ %}/etc/httpd/conf/httpd.conf{% endif %}"
kubeinit_apache_packages_aux: "{% if ( kubeinit_common_cluster_distro == 'rke' or\
  \ kubeinit_common_cluster_distro == 'cdk' ) %} apache2 {% else %} httpd {% endif\
  \ %}"
kubeinit_apache_packages: "{{ kubeinit_apache_packages_aux.split(',') }}"

Role Variables: main.yml

null
...

Molecule Scenarios

Molecule is being used to test the “kubeinit_apache” role. The following section highlights the drivers in service and provides an example playbook showing how the role is leveraged.

Scenario: default

Driver: docker
Example default playbook
- name: Converge
  hosts: all
  # roles:
  #   - role: "kubeinit_apache"
  tasks:
  - name: Message for "kubeinit_apache"
    debug:
      msg: Finishing molecule for "kubeinit_apache"