mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-17 23:10:19 +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: >
|
apt: >
|
||||||
name={{ item }}
|
name={{ item }}
|
||||||
state=installed
|
state=installed
|
||||||
with_items: apache_packages
|
with_items: apache_packages
|
||||||
|
|
||||||
- name: Configure Apache.
|
- name: Configure Apache (Debian).
|
||||||
lineinfile: >
|
lineinfile: >
|
||||||
dest="{{ apache_server_root }}/ports.conf"
|
dest="{{ apache_server_root }}/ports.conf"
|
||||||
regexp="{{ item.regexp }}"
|
regexp="{{ item.regexp }}"
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
}
|
}
|
||||||
notify: restart apache
|
notify: restart apache
|
||||||
|
|
||||||
- name: Enable Apache mods.
|
- name: Enable Apache mods (Debian).
|
||||||
file: >
|
file: >
|
||||||
src={{ apache_server_root }}/mods-available/{{ item }}
|
src={{ apache_server_root }}/mods-available/{{ item }}
|
||||||
dest={{ apache_server_root }}/mods-enabled/{{ item }}
|
dest={{ apache_server_root }}/mods-enabled/{{ item }}
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
---
|
---
|
||||||
- name: Ensure Apache is installed.
|
- name: Ensure Apache is installed (RedHat).
|
||||||
yum: >
|
yum: >
|
||||||
name={{ item }}
|
name={{ item }}
|
||||||
state=installed
|
state=installed
|
||||||
enablerepo={{ apache_enablerepo }}
|
enablerepo={{ apache_enablerepo }}
|
||||||
with_items: apache_packages
|
with_items: apache_packages
|
||||||
|
|
||||||
- name: Configure Apache.
|
- name: Configure Apache (RedHat).
|
||||||
lineinfile: >
|
lineinfile: >
|
||||||
dest={{ apache_server_root }}/conf/{{ apache_daemon }}.conf
|
dest={{ apache_server_root }}/conf/{{ apache_daemon }}.conf
|
||||||
regexp="{{ item.regexp }}"
|
regexp="{{ item.regexp }}"
|
||||||
|
|
Loading…
Reference in a new issue