|
|
|
|
|
|
|
|
{% from "apache/map.jinja" import apache with context %} |
|
|
{% from "apache/map.jinja" import apache with context %} |
|
|
|
|
|
|
|
|
apache: |
|
|
apache: |
|
|
pkg: |
|
|
|
|
|
- installed |
|
|
|
|
|
|
|
|
pkg.installed: |
|
|
- name: {{ apache.server }} |
|
|
- name: {{ apache.server }} |
|
|
service: |
|
|
|
|
|
- running |
|
|
|
|
|
|
|
|
service.running: |
|
|
- name: {{ apache.service }} |
|
|
- name: {{ apache.service }} |
|
|
- enable: True |
|
|
- enable: True |
|
|
|
|
|
|
|
|
# The following states are inert by default and can be used by other states to |
|
|
# The following states are inert by default and can be used by other states to |
|
|
# trigger a restart or reload as needed. |
|
|
# trigger a restart or reload as needed. |
|
|
apache-reload: |
|
|
apache-reload: |
|
|
module: |
|
|
|
|
|
- wait |
|
|
|
|
|
|
|
|
module.wait: |
|
|
- name: service.reload |
|
|
- name: service.reload |
|
|
- m_name: {{ apache.service }} |
|
|
- m_name: {{ apache.service }} |
|
|
|
|
|
|
|
|
apache-restart: |
|
|
apache-restart: |
|
|
module: |
|
|
|
|
|
- wait |
|
|
|
|
|
|
|
|
module.wait: |
|
|
- name: service.restart |
|
|
- name: service.restart |
|
|
- m_name: {{ apache.service }} |
|
|
- m_name: {{ apache.service }} |