28 lines
651 B
YAML
28 lines
651 B
YAML
---
|
|
- name: Remote Unlock Test
|
|
hosts: all
|
|
vars:
|
|
unlock_port: 2224
|
|
luks_passphrase: '123456'
|
|
tasks:
|
|
- name: Prepare Unlock
|
|
ansible.builtin.include_role:
|
|
name: copyrights.on_premises.remote_unlock
|
|
tasks_from: prepare.yml
|
|
vars:
|
|
ansible_become: true
|
|
|
|
- name: Flush handlers
|
|
ansible.builtin.meta: flush_handlers
|
|
|
|
- name: Restart
|
|
ansible.builtin.command:
|
|
cmd: shutdown -r +1
|
|
become: true
|
|
changed_when: result['rc'] == 0
|
|
register: result
|
|
|
|
- name: Unlock after reboot
|
|
ansible.builtin.include_role:
|
|
name: copyrights.on_premises.remote_unlock
|