Installing Apache

The first task we are going to add is one that installs the basic Apache packages. In roles/apache/tasks/main.yml, add the following:

- name: install the apache packages
yum:
name: "{{ item }}"
state: "installed"
with_items: "{{ apache_packages }}"

As you may have already guessed, the defaults for apache_packages can be found in roles/apache/defaults/main.yml:

apache_packages:
- "httpd24u"
- "httpd24u-filesystem"
- "httpd24u-tools"
- "httpd24u-mod_ssl"
- "openssl"
- "openssl-libs"

This installs the latest Apache 2.4 package from IUS, along with some of the supporting tools we will need. Once installed, we will now need to configure Apache.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.222.12