You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
881 B

1 year ago
- 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