20 lines
501 B
YAML
20 lines
501 B
YAML
---
|
|
- name: Mount filesystem as read-write
|
|
ansible.builtin.command: rw
|
|
vars:
|
|
root_mount: "{{ ansible_mounts | selectattr('mount', 'equalto', '/') | first }}"
|
|
when: "'ro' in root_mount.options.split(',')"
|
|
|
|
- name: Install Tailscale
|
|
community.general.pacman:
|
|
name: tailscale-pikvm
|
|
state: latest
|
|
|
|
- name: Enable Tailscale
|
|
ansible.builtin.systemd_service:
|
|
name: tailscaled
|
|
state: started
|
|
enabled: true
|
|
|
|
- name: Mount filesystem as read-only
|
|
ansible.builtin.command: ro
|