mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2024-11-10 07:53:29 +01:00
Add ids for environments.
This commit is contained in:
parent
c92d089f70
commit
f7f52740f0
2 changed files with 5 additions and 5 deletions
|
@ -1,11 +1,11 @@
|
|||
---
|
||||
- name: Ensure Apache is installed.
|
||||
- name: Ensure Apache is installed (Debian).
|
||||
apt: >
|
||||
name={{ item }}
|
||||
state=installed
|
||||
with_items: apache_packages
|
||||
|
||||
- name: Configure Apache.
|
||||
- name: Configure Apache (Debian).
|
||||
lineinfile: >
|
||||
dest="{{ apache_server_root }}/ports.conf"
|
||||
regexp="{{ item.regexp }}"
|
||||
|
@ -22,7 +22,7 @@
|
|||
}
|
||||
notify: restart apache
|
||||
|
||||
- name: Enable Apache mods.
|
||||
- name: Enable Apache mods (Debian).
|
||||
file: >
|
||||
src={{ apache_server_root }}/mods-available/{{ item }}
|
||||
dest={{ apache_server_root }}/mods-enabled/{{ item }}
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
---
|
||||
- name: Ensure Apache is installed.
|
||||
- name: Ensure Apache is installed (RedHat).
|
||||
yum: >
|
||||
name={{ item }}
|
||||
state=installed
|
||||
enablerepo={{ apache_enablerepo }}
|
||||
with_items: apache_packages
|
||||
|
||||
- name: Configure Apache.
|
||||
- name: Configure Apache (RedHat).
|
||||
lineinfile: >
|
||||
dest={{ apache_server_root }}/conf/{{ apache_daemon }}.conf
|
||||
regexp="{{ item.regexp }}"
|
||||
|
|
Loading…
Reference in a new issue