diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-02-25 10:16:37 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-02-25 10:16:37 +0100 |
commit | ab1d1e236a410e07a8a6109a6f4f26d27e413903 (patch) | |
tree | c0e099a3277bbfb9b9266a8375e2c158134d440e /ansible/roles/mw-backend/tasks | |
parent | ff8685267b46e18828967790f772f30e19275e7e (diff) | |
download | infra-ab1d1e236a410e07a8a6109a6f4f26d27e413903.tar.gz infra-ab1d1e236a410e07a8a6109a6f4f26d27e413903.tar.bz2 infra-ab1d1e236a410e07a8a6109a6f4f26d27e413903.tar.xz infra-ab1d1e236a410e07a8a6109a6f4f26d27e413903.zip |
wip
Diffstat (limited to 'ansible/roles/mw-backend/tasks')
-rw-r--r-- | ansible/roles/mw-backend/tasks/main.yml | 48 |
1 files changed, 31 insertions, 17 deletions
diff --git a/ansible/roles/mw-backend/tasks/main.yml b/ansible/roles/mw-backend/tasks/main.yml index e3a0264..69f056d 100644 --- a/ansible/roles/mw-backend/tasks/main.yml +++ b/ansible/roles/mw-backend/tasks/main.yml @@ -68,20 +68,34 @@ template: src: etc/mediawiki/LocalSettings.php.j2 dest: /etc/mediawiki/LocalSettings.php -# - name: directories -# file: -# state: directory -# path: "{{ item }}" -# owner: root -# group: root -# with_items: -# - /opt/mediawiki -# - /opt/mediawiki/images -# - name: www-data owned directories -# file: -# state: directory -# path: "{{ item }}" -# owner: www-data -# group: www-data -# with_items: -# - /opt/mediawiki/images/deleted + +- name: Semantic MediaWiki + tags: + - mw-backend + - smw + block: + - name: packages + apt: + name: "{{ item }}" + install_recommends: no + with_items: + - composer + - php-zip + - name: directories + file: + state: directory + path: "{{ item }}" + owner: root + group: root + with_items: + - /opt/mediawiki + - /opt/mediawiki/semantic-media-wiki + - name: composer config + copy: + src: opt/mediawiki/semantic-media-wiki/composer.json + dest: /opt/mediawiki/semantic-media-wiki/composer.json + - name: run composer + become_user: www-data + composer: + command: install + working_dir: /opt/mediawiki/semantic-media-wiki |