June 2018
Beginner
578 pages
13h 39m
English
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.
Read now
Unlock full access