Migrate services part
This commit is contained in:
parent
7c59e4ae57
commit
73bce8f6e5
157 changed files with 3883 additions and 9 deletions
playbooks
14
playbooks/change-password.yml
Normal file
14
playbooks/change-password.yml
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
- name: Change password
|
||||
hosts: all
|
||||
become: true
|
||||
tasks:
|
||||
- name: Get new password
|
||||
ansible.builtin.pause:
|
||||
prompt: Enter the new password
|
||||
echo: false
|
||||
register: new_user_password
|
||||
- name: Change password
|
||||
ansible.builtin.user:
|
||||
name: "{{ interactive_user }}"
|
||||
password: "{{ new_user_password.user_input | password_hash('sha512') }}"
|
Loading…
Add table
Add a link
Reference in a new issue