new files from source
This commit is contained in:
132 files changed
+5335
No files matched your search
@@ -0,0 +1,16 @@
|
||||
---
|
||||
- name: Set root password
|
||||
block:
|
||||
- name: Fail if root password is not defined
|
||||
fail:
|
||||
msg: "The variable 'root_password_plain' must be provided (e.g., via GitLab CI/CD Variable)"
|
||||
when: root_password_plain is not defined
|
||||
|
||||
- name: Generate root password hash
|
||||
set_fact:
|
||||
root_password_hash: "{{ root_password_plain | password_hash('sha512') }}"
|
||||
|
||||
- name: Set root user password
|
||||
user:
|
||||
name: root
|
||||
password: "{{ root_password_hash }}"
|
||||
Reference in new issue
Block a user