mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +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>
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
---
|
|
- name: "🚀 DEPLOY | Collect {{ SOFTWARE_DOMAIN }} timers (unlock phase)"
|
|
become: true
|
|
ansible.builtin.command:
|
|
argv:
|
|
- systemctl
|
|
- list-unit-files
|
|
- "*.{{ SOFTWARE_DOMAIN }}.timer"
|
|
- --no-legend
|
|
- --no-pager
|
|
register: deploy_timer_units_unlock
|
|
changed_when: false
|
|
failed_when: false
|
|
|
|
- name: "🚀 DEPLOY | Build timer list (unlock phase)"
|
|
ansible.builtin.set_fact:
|
|
deploy_timers_unlock: >-
|
|
{{
|
|
deploy_timer_units_unlock.stdout_lines | default([])
|
|
| map('split', ' ')
|
|
| map('first')
|
|
| list
|
|
}}
|
|
|
|
- name: "🚀 DEPLOY | Unmask all {{ SOFTWARE_DOMAIN }} timers"
|
|
become: true
|
|
ansible.builtin.systemd:
|
|
name: "{{ item }}"
|
|
masked: false
|
|
loop: "{{ deploy_timers_unlock }}"
|
|
when: deploy_timers_unlock | length > 0
|
|
|
|
- name: "🚀 DEPLOY | Enable and start all {{ SOFTWARE_DOMAIN }} timers"
|
|
become: true
|
|
ansible.builtin.systemd:
|
|
name: "{{ item }}"
|
|
enabled: true
|
|
state: started
|
|
loop: "{{ deploy_timers_unlock }}"
|
|
when: deploy_timers_unlock | length > 0
|