mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-11-04 20:28:11 +00:00
- networks: add web-app-drupal subnet 192.168.104.80/28 - ports: map localhost http port 8060 - add role files: tasks, vars, schema, users, templates (Dockerfile, docker-compose, settings.local.php, upload.ini) - add docs: README.md and Administration.md Ref: https://chatgpt.com/share/690535c5-b55c-800f-8556-5335a6b8a33f
16 lines
854 B
YAML
16 lines
854 B
YAML
- name: "Run Drupal site:install via Drush"
|
|
no_log: "{{ MASK_CREDENTIALS_IN_LOGS | bool }}"
|
|
command: >
|
|
docker exec {{ DRUPAL_CONTAINER }} bash -lc
|
|
"/var/www/html/vendor/bin/drush -r {{ DRUPAL_DOCKER_HTML_PATH }} si standard -y
|
|
--site-name='{{ applications | get_app_conf(application_id, 'title', True) }}'
|
|
--account-name='{{ applications | get_app_conf(application_id, 'users.administrator.username') }}'
|
|
--account-mail='{{ applications | get_app_conf(application_id, 'users.administrator.email', True) }}'
|
|
--account-pass='{{ applications | get_app_conf(application_id, 'credentials.administrator_password', True) }}'
|
|
--uri='{{ DRUPAL_URL }}'"
|
|
args:
|
|
chdir: "{{ docker_compose.directories.instance }}"
|
|
register: drupal_install
|
|
changed_when: "'Installation complete' in drupal_install.stdout"
|
|
failed_when: false
|