Add ids for environments.

This commit is contained in:
Jeff Geerling 2014-05-10 13:33:06 -05:00
parent c92d089f70
commit f7f52740f0
2 changed files with 5 additions and 5 deletions

View file

@ -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 }}

View file

@ -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 }}"