Two full runs on the docker_api connection took 45 and 49 minutes against 35 on the CLI connection, with the same tasks a median 13% slower. The fixed Python interpreter from the same change stays. Refs #455 Assisted-by: Claude Code
32 lines
1.1 KiB
YAML
32 lines
1.1 KiB
YAML
---
|
|
# ansible_user is a connection variable: under the docker connection it would
|
|
# make `docker exec -u <user>` before the user exists. So the primary user is
|
|
# set explicitly instead of through the default ({{ ansible_user }}).
|
|
# bootstrap.yml: wait_for_connection succeeds over the docker connection, so the
|
|
# root fallback is never taken.
|
|
- name: Converge
|
|
hosts: all
|
|
roles:
|
|
- role: mortis.kamino.user_management
|
|
vars:
|
|
user_management_ansible_user:
|
|
name: um-admin
|
|
password_hash: "{{ user_management_become_password_hashed | mandatory }}"
|
|
groups: [sudo]
|
|
shell: /bin/bash
|
|
create_home: true
|
|
state: present
|
|
authorized_keys:
|
|
- "{{ user_management_test_admin_key }}"
|
|
user_management_authoritative: true
|
|
user_management_lock_root_password: true
|
|
user_management_other_users:
|
|
- name: um-alice
|
|
groups: [sudo]
|
|
shell: /bin/bash
|
|
comment: Molecule test user
|
|
authorized_keys:
|
|
- "{{ user_management_test_alice_key }}"
|
|
- name: um-olduser
|
|
state: absent
|