working apache2 config Had to enable mcrypt via php2enmod, rewrite mod via a2enmod, which while using the command task is less than ideal, at least uses platform-preferred methods. Also fixed spacing in the logdir creation task, and set DocumentRoot in the default sites-enabled, instead of the main apache2 config.
Project: http://git-wip-us.apache.org/repos/asf/airavata/repo Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/58542a4c Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/58542a4c Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/58542a4c Branch: refs/heads/ansible-testing-0.17 Commit: 58542a4c064db1e12898d003b6adb50975712299 Parents: f31e6a3 Author: jecoulte <[email protected]> Authored: Fri Jan 27 11:47:12 2017 -0500 Committer: jecoulte <[email protected]> Committed: Fri Jan 27 11:47:12 2017 -0500 ---------------------------------------------------------------------- .../roles/pga/tasks/install_deps_Debian.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata/blob/58542a4c/dev-tools/ansible/roles/pga/tasks/install_deps_Debian.yml ---------------------------------------------------------------------- diff --git a/dev-tools/ansible/roles/pga/tasks/install_deps_Debian.yml b/dev-tools/ansible/roles/pga/tasks/install_deps_Debian.yml index aa7f921..c9d601c 100644 --- a/dev-tools/ansible/roles/pga/tasks/install_deps_Debian.yml +++ b/dev-tools/ansible/roles/pga/tasks/install_deps_Debian.yml @@ -28,11 +28,21 @@ command: php5enmod mcrypt become: yes +- name: enable apache rewrite + command: a2enmod rewrite + become: yes + - name: create apache2 logdir file: - path: /etc/apache2/logs - state: directory - owner: www-data - group: www-data - mode: 0775 + path: /etc/apache2/logs + state: directory + owner: www-data + group: www-data + mode: 0775 +- name: set DocumentRoot in default site-enabled + lineinfile: + dest: /etc/apache2/sites-enabled/000-default.conf + line: ' DocumentRoot "/var/www/html/php-gateway/public"' + regexp: '^\s+DocumentRoot' + state: present
