8025-awxRefactor-debianBootStrap-FinishWorks #32
|
@ -1,3 +1,4 @@
|
|||
root_password: Pa$$w0rd
|
||||
vn_witness: false
|
||||
default_user: user
|
||||
root_password: Pa$$w0rd
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
- import_tasks: witness.yml
|
||||
tags: witness
|
||||
- import_tasks: root.yml
|
||||
tags: root
|
||||
- import_tasks: resolv.yml
|
||||
tags: resolv
|
||||
- import_tasks: timesync.yml
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
}}
|
||||
environment:
|
||||
PASSBOLT_CREATE_NEW_RESOURCE: true
|
||||
when: vn_witness
|
||||
- name: Save the root password to file
|
||||
copy:
|
||||
content: "{{ root_password }}\n"
|
||||
|
@ -20,7 +21,10 @@
|
|||
owner: root
|
||||
group: root
|
||||
mode: '0600'
|
||||
when: vn_witness
|
||||
register: local
|
||||
- name: Change root password
|
||||
user:
|
||||
name: root
|
||||
password: "{{ root_password | password_hash('sha512') }}"
|
||||
when: local.changed
|
|
@ -1 +0,0 @@
|
|||
root_password: Pa$$w0rd
|
|
@ -1,2 +0,0 @@
|
|||
- import_tasks: root.yml
|
||||
tags: root
|
Loading…
Reference in New Issue