Refs #8025 Rol debian-base. root task - Move task from debian-once. Removed debian-once role. Added witness control to task ssh flow.
This commit is contained in:
parent
4be47afe7d
commit
83110e0dca
|
@ -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