diff options
author | Ben Copeland <ben.copeland@linaro.org> | 2016-03-09 16:17:01 +0000 |
---|---|---|
committer | Ben Copeland <ben.copeland@linaro.org> | 2016-03-10 00:09:29 +0000 |
commit | 268009983f0bacc66388f2c4cf5e3414502133da (patch) | |
tree | 942c3408f804726858088169c48c56287267a4f2 | |
parent | fbec9d86a87cb43bd5ae5b8a9271101bb2c911c5 (diff) |
django: use proper Ansible module
Instead of using command to enable Apache modules, we should use the
Ansible's apache2_module.
Change-Id: I537cab32ea7ddfcf99d318c061da20965f66bf8e
Reviewed-on: https://review.linaro.org/10873
Reviewed-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Reviewed-by: Andy Doan <andy.doan+gerrit@linaro.org>
-rw-r--r-- | roles/django/tasks/django_apt.yml | 3 | ||||
-rw-r--r-- | roles/django/tasks/django_pypi.yml | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/roles/django/tasks/django_apt.yml b/roles/django/tasks/django_apt.yml index 5a599db2..6cf99cb7 100644 --- a/roles/django/tasks/django_apt.yml +++ b/roles/django/tasks/django_apt.yml @@ -92,7 +92,6 @@ - update - name: Enable mod_wsgi - command: a2enmod {{ item }} - creates=/etc/apache2/mods-enabled/{{ item }}.load + apache_module: name={{ item }} with_items: apache_modules notify: restart-apache diff --git a/roles/django/tasks/django_pypi.yml b/roles/django/tasks/django_pypi.yml index 423ec908..678b9bb8 100644 --- a/roles/django/tasks/django_pypi.yml +++ b/roles/django/tasks/django_pypi.yml @@ -53,7 +53,6 @@ - update - name: Enable required modules - command: a2enmod {{ item }} - creates=/etc/apache2/mods-enabled/{{ item }}.load + apache2_module: name={{ item }} with_items: apache_modules notify: restart-apache |