14 lines
240 B
Plaintext
14 lines
240 B
Plaintext
{% set pkg = salt['grains.filter_by']({
|
|
'Debian': {'name': 'apache2'},
|
|
'RedHat': {'name': 'httpd'},
|
|
}) %}
|
|
|
|
apache:
|
|
pkg:
|
|
- installed
|
|
- name: {{ pkg.name }}
|
|
service:
|
|
- running
|
|
- name: {{ pkg.name }}
|
|
- enable: True
|