mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
- Removed obsolete 'cmp' category, introduced 'stk' category (fa-bars-staggered icon). - Renamed roles: * cmp-db-docker → sys-stk-back-stateful * cmp-docker-oauth2 → sys-stk-back-stateless * srv-domain-provision → sys-stk-front * cmp-db-docker-proxy → sys-stk-full-stateful * cmp-docker-proxy → sys-stk-full-stateless * cmp-rdbms → sys-svc-rdbms - Updated all include_role references, vars, templates and README.md files. - Adjusted run_once comments and variable paths accordingly. - Updated all web-app roles to use new sys-stk/* and sys-svc/* roles. Conversation: https://chatgpt.com/share/68b0ba66-09f8-800f-86fc-76c47009d431
34 lines
1009 B
YAML
34 lines
1009 B
YAML
---
|
|
- name: "load docker, db and proxy for {{ application_id }}"
|
|
include_role:
|
|
name: sys-stk-full-stateful
|
|
vars:
|
|
docker_compose_flush_handlers: false
|
|
|
|
- name: "Deploy MediaWiki LocalSettings.php"
|
|
template:
|
|
src: "LocalSettings.php.j2"
|
|
dest: "{{ MEDIAWIKI_SETTINGS_HOST_PATH }}"
|
|
mode: '0644'
|
|
|
|
- name: "Flush docker compose handlers"
|
|
meta: flush_handlers
|
|
|
|
- name: "Create MediaWiki admin user"
|
|
command: >
|
|
docker exec
|
|
-u {{ MEDIAWIKI_USER }}
|
|
{{ MEDIAWIKI_CONTAINER }}
|
|
php /var/www/html/maintenance/createAndPromote.php
|
|
--bureaucrat --sysop
|
|
{{ MEDIAWIKI_ADMINISTRATOR_NAME }}
|
|
{{ MEDIAWIKI_ADMINISTRATOR_PASSWORD }}
|
|
{{ MEDIAWIKI_ADMINISTRATOR_EMAIL }}
|
|
register: create_admin
|
|
changed_when: >
|
|
'created' in (create_admin.stdout | default('')) or
|
|
'Created' in (create_admin.stdout | default(''))
|
|
failed_when: >
|
|
create_admin.rc != 0 and
|
|
('already exists' not in (create_admin.stdout | default('') ~ create_admin.stderr | default('')))
|