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>
30 lines
1.0 KiB
YAML
30 lines
1.0 KiB
YAML
---
|
|
- name: ✅ Ensure custom LDAP schema snippet via ldapsm
|
|
vars:
|
|
schema_name: "nextcloud"
|
|
attribute_defs:
|
|
- "( 1.3.6.1.4.1.99999.1 NAME '{{ LDAP.USER.ATTRIBUTES.NEXTCLOUD_QUOTA }}' DESC 'Quota for Nextcloud' EQUALITY integerMatch ORDERING integerOrderingMatch SYNTAX
|
|
1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )"
|
|
objectclass_defs:
|
|
- "( 1.3.6.1.4.1.99999.2 NAME '{{ LDAP.USER.OBJECTS.AUXILIARY.NEXTCLOUD_USER }}' DESC 'Auxiliary class for Nextcloud attributes' AUXILIARY MAY ( {{ LDAP.USER.ATTRIBUTES.NEXTCLOUD_QUOTA
|
|
}} ) )"
|
|
command: >
|
|
ldapsm
|
|
-s {{ OPENLDAP_SERVER_URI }}
|
|
-D '{{ OPENLDAP_BIND_DN }}'
|
|
-W '{{ OPENLDAP_BIND_PW }}'
|
|
-n {{ schema_name }}
|
|
{% for at in attribute_defs %}
|
|
-a "{{ at }}"
|
|
{% endfor %}
|
|
{% for oc in objectclass_defs %}
|
|
-c "{{ oc }}"
|
|
{% endfor %}
|
|
register: ldapsm_result
|
|
changed_when: "'Created schema entry' in ldapsm_result.stdout"
|
|
check_mode: false
|
|
|
|
- name: 👁️ Show ldapsm output
|
|
debug:
|
|
var: ldapsm_result.stdout_lines
|