mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 02:54:26 +00:00
Add tests/lint/repository/test_name_emoji_and_length.py: every Ansible task name and GitHub Actions workflow/job/step name must start with an emoji (first char not 0-9/A-Za-z) and be <= 80 chars. - emit emoji names at the source: cli/build/include generator now writes "🔧 setup <app>" / "🚿 flush handlers after <app>" so generated tasks/groups/*-roles.yml satisfy the convention too - convert existing task/step/job/workflow names to emoji-prefixed, choosing a task-fitting icon per action (📦 install, ✅ ensure, 🔍 probe, 🥾 bootstrap, 🚀 deploy, 🧩 service-module load, ⬇️ checkout, 📂 include-routines, ...) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
34 lines
1.3 KiB
YAML
34 lines
1.3 KiB
YAML
---
|
|
- name: "⏳ Wait until WordPress core files exist in {{ WORDPRESS_DOCKER_HTML_PATH }}"
|
|
shell: >
|
|
container exec {{ WORDPRESS_CONTAINER_ADDRESS }}
|
|
test -f {{ WORDPRESS_DOCKER_HTML_PATH }}/wp-includes/version.php
|
|
register: wp_core_present
|
|
retries: 60
|
|
delay: 2
|
|
changed_when: false
|
|
until: wp_core_present.rc == 0
|
|
failed_when: false
|
|
|
|
- name: "🌱 Seed WordPress core into volume if missing"
|
|
when: wp_core_present.rc != 0
|
|
shell: >
|
|
container exec -u root {{ WORDPRESS_CONTAINER_ADDRESS }} sh -lc
|
|
'set -e;
|
|
echo "[seed] WP core missing, copying from /usr/src/wordpress -> {{ WORDPRESS_DOCKER_HTML_PATH }}";
|
|
cp -a /usr/src/wordpress/. {{ WORDPRESS_DOCKER_HTML_PATH }}/;
|
|
chown -R {{ WORDPRESS_USER }}:{{ WORDPRESS_USER }} {{ WORDPRESS_DOCKER_HTML_PATH }}'
|
|
changed_when: true
|
|
|
|
- name: "▶️ Run WordPress core install via WP CLI"
|
|
no_log: "{{ MASK_CREDENTIALS_IN_LOGS | bool }}"
|
|
shell: >
|
|
container exec -u {{ WORDPRESS_USER }} {{ WORDPRESS_CONTAINER_ADDRESS }}
|
|
wp core install
|
|
--url={{ WORDPRESS_URL | quote }}
|
|
--title={{ WORDPRESS_TITLE | quote }}
|
|
--admin_user={{ WORDPRESS_ADMIN_USER | quote }}
|
|
--admin_password={{ WORDPRESS_ADMIN_PASSWORD | quote }}
|
|
--admin_email={{ WORDPRESS_ADMIN_EMAIL | quote }}
|
|
--path={{ WORDPRESS_DOCKER_HTML_PATH | quote }}
|