mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-11-02 19:28:10 +00:00
Ref: https://chatgpt.com/share/69039c22-f530-800f-a641-fd2636d5b6af
19 lines
511 B
YAML
19 lines
511 B
YAML
---
|
|
# Reset Joomla admin password via CLI (inside the container)
|
|
- name: "Reset Joomla admin password (non-interactive CLI)"
|
|
command:
|
|
argv:
|
|
- docker
|
|
- exec
|
|
- "{{ JOOMLA_CONTAINER }}"
|
|
- php
|
|
- "{{ JOOMLA_CLI_FILE }}"
|
|
- user:reset-password
|
|
- "--username"
|
|
- "{{ JOOMLA_USER_NAME }}"
|
|
- "--password"
|
|
- "{{ JOOMLA_USER_PASSWORD }}"
|
|
register: j_password_reset
|
|
no_log: "{{ MASK_CREDENTIALS_IN_LOGS | bool }}"
|
|
changed_when: j_password_reset.rc == 0
|