summaryrefslogtreecommitdiff
path: root/per-service
diff options
context:
space:
mode:
authorBen Copeland <ben.copeland@linaro.org>2016-03-09 05:53:53 +0000
committerBen Copeland <ben.copeland@linaro.org>2016-03-10 00:09:48 +0000
commit8c460bdbd43d961fbc88d18ca92a2756c74854dd (patch)
treeaa359a77bb25c0c63cfe55670e30f432bb8dbd75 /per-service
parent268009983f0bacc66388f2c4cf5e3414502133da (diff)
downloadansible-playbooks-8c460bdbd43d961fbc88d18ca92a2756c74854dd.tar.gz
apache_conf: use proper Ansible module
Instead of using command to enable Apache modules, we should use the Ansible's apache2_module. Change-Id: I8fb6f43b23e246ef012631597c8d8e38b6496ec1 Reviewed-on: https://review.linaro.org/10866 Reviewed-by: Andy Doan <andy.doan+gerrit@linaro.org>
Diffstat (limited to 'per-service')
-rw-r--r--per-service/git-servers/roles/apache-conf/tasks/main.yml9
1 files changed, 3 insertions, 6 deletions
diff --git a/per-service/git-servers/roles/apache-conf/tasks/main.yml b/per-service/git-servers/roles/apache-conf/tasks/main.yml
index 5e5f501..cfc1ac9 100644
--- a/per-service/git-servers/roles/apache-conf/tasks/main.yml
+++ b/per-service/git-servers/roles/apache-conf/tasks/main.yml
@@ -2,8 +2,7 @@
# Disable defaults and enable necessary modules.
- name: Enable Apache modules
- command: a2enmod {{ item }}
- creates=/etc/apache2/mods-enabled/{{ item }}.load
+ apache2_module: name={{ item }}
with_items:
- ssl
- expires
@@ -16,8 +15,7 @@
- apache-conf
- name: Enable git-main Apache modules
- command: a2enmod {{ item }}
- creates=/etc/apache2/mods-enabled/{{ item }}.load
+ apache2_module: name={{ item }}
with_items:
- suexec
notify: restart-apache
@@ -27,8 +25,7 @@
- apache-conf
- name: Enable git-android Apache modules
- command: a2enmod {{ item }}
- creates=/etc/apache2/mods-enabled/{{ item }}.load
+ apache2_module: name={{ item }}
with_items:
- proxy
- proxy_http