- name: Install Apache
  yum:
    name: "{{ item }}"
    state: present
  with_items:
    - httpd
  notify: install httpd
  tags:
    - packages

- name: Enable Apache
  service:
    name: httpd
    enabled: true
    state: stopped

- name: Install Apache
  yum:
    name: "{{ item }}"
    state: present
  with_items:
    - httpd
    - mod_ssl
  notify: install httpd
  tags:
    - packages
    - apache

- name: Enable Apache
  service:
    name: httpd
    enabled: true
    state: stopped
  tags:
    - apache

Add SSL module to Apache
Add SSL module to Apache
