diff --git a/lotus-land-story/golink.yml b/lotus-land-story/golink.yml new file mode 100644 index 0000000..219eb7c --- /dev/null +++ b/lotus-land-story/golink.yml @@ -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 diff --git a/lotus-land-story/main.yml b/lotus-land-story/main.yml index a10e98b..c3aad08 100644 --- a/lotus-land-story/main.yml +++ b/lotus-land-story/main.yml @@ -98,5 +98,6 @@ - import_playbook: loki.yml # noqa: name[play] - import_playbook: miniflux.yml # noqa: name[play] - import_playbook: caddy.yml # noqa: name[play] +- import_playbook: golink.yml # noqa: name[play] # vim: ft=yaml.ansible