main
Alpha Chen 1 year ago
parent 38c023e314
commit cc53708789
Signed by: alpha
SSH Key Fingerprint: SHA256:3fOT8fiYQG/aK9ntivV3Bqtg8AYQ7q4nV6ZgihOA20g

@ -0,0 +1,35 @@
- name: Set up Golink
hosts: lotus-land-story
vars_files:
- vars.yml
tasks:
- name: Make /mnt/lotus-land-story/golink
ansible.builtin.file:
path: /mnt/lotus-land-story/golink
state: directory
mode: "0755"
owner: 65532
group: 65532
- name: Run Golink
community.docker.docker_container:
# recreate: true
# restart: true
name: golink
image: ghcr.io/tailscale/golink:main
env:
TS_AUTHKEY: "{{ golink.auth_key }}"
volumes:
- /mnt/lotus-land-story/golink:/home/nonroot
restart_policy: unless-stopped
# networks:
# - name: lotus_land_story
# etc_hosts:
# host.docker.internal: host-gateway
handlers:
- name: Import restarts
ansible.builtin.import_tasks: restarts.yml
# vim: ft=yaml.ansible

@ -98,5 +98,6 @@
- import_playbook: loki.yml # noqa: name[play] - import_playbook: loki.yml # noqa: name[play]
- import_playbook: miniflux.yml # noqa: name[play] - import_playbook: miniflux.yml # noqa: name[play]
- import_playbook: caddy.yml # noqa: name[play] - import_playbook: caddy.yml # noqa: name[play]
- import_playbook: golink.yml # noqa: name[play]
# vim: ft=yaml.ansible # vim: ft=yaml.ansible

Loading…
Cancel
Save