Fix references to home dir
All checks were successful
/ terraform (push) Successful in 47s
/ ansible (push) Successful in 1m46s

This commit is contained in:
Jake Howard 2023-06-17 16:00:30 +01:00
parent 677c70618f
commit da55e3fb5f
Signed by: jake
GPG key ID: 57AFB45680EDD477
3 changed files with 4 additions and 4 deletions

View file

@ -43,7 +43,7 @@
- name: Install util scripts - name: Install util scripts
copy: copy:
src: ./files/docker-utils src: ./files/docker-utils
dest: "{{ home }}" dest: "{{ me.home }}"
mode: "755" mode: "755"
directory_mode: "755" directory_mode: "755"

View file

@ -30,7 +30,7 @@
- name: Create wireguard client directory - name: Create wireguard client directory
file: file:
path: "{{ home }}/wireguard-clients" path: "{{ me.home }}/wireguard-clients"
state: directory state: directory
owner: "{{ me.user }}" owner: "{{ me.user }}"
mode: "700" mode: "700"
@ -38,7 +38,7 @@
- name: Wireguard client configuration - name: Wireguard client configuration
template: template:
src: files/wireguard-client.conf src: files/wireguard-client.conf
dest: "{{ home }}/wireguard-clients/{{ item.key }}.conf" dest: "{{ me.home }}/wireguard-clients/{{ item.key }}.conf"
owner: "{{ me.user }}" owner: "{{ me.user }}"
mode: "600" mode: "600"
loop: "{{ wireguard.clients | dict2items }}" loop: "{{ wireguard.clients | dict2items }}"

View file

@ -21,7 +21,7 @@
- name: Wireguard client config - name: Wireguard client config
template: template:
src: files/client.conf src: files/client.conf
dest: "{{ home }}/wg53.conf" dest: "{{ me.home }}/wg53.conf"
mode: "0600" mode: "0600"
become: true become: true
notify: restart wireguard notify: restart wireguard