Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor ansible #78

Merged
merged 16 commits into from
Nov 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions 100Change2017/ansible/100Change2017.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,25 @@
become: true
become_user: "{{ deployment_user }}"
roles:
- postgres
- postgres

- hosts: mediawiki
become: true
become_user: "{{ deployment_user }}"
roles:
- mediawiki
- mediawiki
- activitylog
- collection
- embed_video
- permissions
- simplesaml
- torquedataconnect
- 100Change2017
# This should always go last, to run db updates and restart
- finishmediawiki

- hosts: simplesaml
become: true
become_user: "{{ deployment_user }}"
roles:
- simplesaml
- simplesaml
9 changes: 9 additions & 0 deletions 100Change2017/ansible/inv/local/group_vars/all.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
---
competition_name: 100Change2017

# The sheet that this wiki is going to act on. Most of the time
# this will be the same as the competition name (above), but sometimes
# this is different when either the competition name doesn't work as
# a sheet name (for instance, if it starts with a number), or if
# this wiki should act on a different sheet.
torquedataconnect_sheet_name: LFC100Change2017

# Root web directory (where symlinks to the mediawiki instances
# are installed)
html_directory: /var/www/html
Expand Down
2 changes: 2 additions & 0 deletions 100Change2017/ansible/inv/prod/group_vars/all/base
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
competition_name: 100Change2017
torquedataconnect_sheet_name: LFC100Change2017
html_directory: /var/www/html
mediawiki_install_directory: /home/deploy/100Change2017/
mediawiki_mwlib_username: mwlib
Expand Down
12 changes: 12 additions & 0 deletions 100Change2017/ansible/roles/100Change2017/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---

- name: Transfer LFC Logo
copy:
src: 100Change-logo150.png
dest: "{{ mediawiki_install_directory }}/mediawiki-1.33.0/resources/assets/100Change-logo150.png"

- name: Install LFC Logo
lineinfile:
path: "{{ mediawiki_install_directory }}/mediawiki-1.33.0/LocalSettings.php"
regexp: ^\$wgLogo = .*
line: $wgLogo = "$wgResourceBasePath/resources/assets/100Change-logo150.png";
13 changes: 0 additions & 13 deletions 100Change2017/ansible/roles/mediawiki/files/Common.css

This file was deleted.

Loading