feat: update CIFS credentials lookup and add golink service deployment tasks
Some checks failed
Nix Format Check / check-format (push) Failing after 38s
Some checks failed
Nix Format Check / check-format (push) Failing after 38s
This commit is contained in:
parent
822704cd1d
commit
faa0205eb5
@ -18,7 +18,7 @@
|
|||||||
dest: /root/.smbcredentials
|
dest: /root/.smbcredentials
|
||||||
content: |
|
content: |
|
||||||
username=u451316
|
username=u451316
|
||||||
password={{ lookup('onepassword', '5j5y5axfjr3f3sn5nixb6htg4y', field='password', vault='j7nmhqlsjmp2r6umly5t75hzb4') | default('CHANGE_ME') }}
|
password={{ lookup('onepassword', '5j5y5axfjr3f3sn5nixb6htg4y', vault='j7nmhqlsjmp2r6umly5t75hzb4') | default('CHANGE_ME') }}
|
||||||
mode: '0600'
|
mode: '0600'
|
||||||
|
|
||||||
- name: Add fstab entry for storage-box
|
- name: Add fstab entry for storage-box
|
||||||
|
20
config/ansible/tasks/servers/services/golink/golink.yml
Normal file
20
config/ansible/tasks/servers/services/golink/golink.yml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
- name: Ensure golink data directory exists
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /mnt/storage-box/golink/data
|
||||||
|
state: directory
|
||||||
|
mode: '0755'
|
||||||
|
owner: '1000'
|
||||||
|
group: '100'
|
||||||
|
|
||||||
|
- name: Deploy golink docker container
|
||||||
|
community.docker.docker_container:
|
||||||
|
name: golink
|
||||||
|
image: ghcr.io/tailscale/golink:main
|
||||||
|
restart_policy: unless-stopped
|
||||||
|
env:
|
||||||
|
PUID: '1000'
|
||||||
|
PGID: '100'
|
||||||
|
TS_AUTHKEY: "{{ lookup('onepassword', '4gsgavajnxfpcrjvbkqhoc4drm', vault='j7nmhqlsjmp2r6umly5t75hzb4') }}"
|
||||||
|
volumes:
|
||||||
|
- /mnt/storage-box/golink/data:/home/nonroot
|
Loading…
x
Reference in New Issue
Block a user