identifiants_posix.yml 16 lignes · 1063 octets
---
# Identifiants POSIX (D-063) : posixAccount et uidNumber = gidNumber pour chaque compte local qui
# n'en a pas, openiamGroupePosix et gidNumber pour chaque groupe local qui n'en a pas ; premier libre
# de 10000 à 199999, un seul compteur. Rien n'est changé sur ce qui en a déjà.
- name: Attribuer les identifiants POSIX manquants
  ansible.builtin.command:
    argv: ["{{ oiam_ldap_identifiants_script }}", "{{ oiam_ldap_prefixe }}", "{{ oiam_ldap_ldapi }}", "{{ oiam_base_dn }}"]
  register: oiam_ldap_identifiants
  changed_when: (oiam_ldap_identifiants.stdout | from_json).changed

# F-33 : un uid qui n'est pas ordinaire (lettres, chiffres, « . », « _ », « - », 64 au plus) ne reçoit
# aucun identifiant POSIX : le compte est listé ici, à corriger dans l'annuaire.
- name: Signaler les comptes sautés (uid non ordinaire)
  ansible.builtin.debug:
    msg: "Identifiants POSIX non attribués, uid non ordinaire : {{ (oiam_ldap_identifiants.stdout | from_json).sautes }}"
  when: (oiam_ldap_identifiants.stdout | from_json).sautes | length > 0