Refactor ansible_env.HOME usage
This commit is contained in:
parent
43de1cc0d0
commit
e7ecd16360
5 changed files with 12 additions and 12 deletions
|
|
@ -33,4 +33,4 @@
|
|||
- name: Compile wezterm terminfo file
|
||||
become: true
|
||||
when: wezterm_copy.changed
|
||||
ansible.builtin.command: 'tic -x {{ ansible_env.HOME }}/.terminfo'
|
||||
ansible.builtin.command: tic -x /home/sonny/.terminfo
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@ syncthing_devices:
|
|||
syncthing_folders:
|
||||
- id: default
|
||||
label: Default
|
||||
path: '/var/syncthing/default'
|
||||
source_path: '{{ ansible_env.HOME }}/files/sync/'
|
||||
path: /var/syncthing/default
|
||||
source_path: /home/sonny/files/sync/
|
||||
type: sendreceive
|
||||
devices:
|
||||
- *syncthing_desktop_id
|
||||
|
|
@ -35,8 +35,8 @@ syncthing_folders:
|
|||
|
||||
- id: pictures
|
||||
label: Pictures
|
||||
path: '/var/syncthing/pictures'
|
||||
source_path: '{{ ansible_env.HOME }}/files/pictures/'
|
||||
path: /var/syncthing/pictures
|
||||
source_path: /home/sonny/files/pictures/
|
||||
type: sendreceive
|
||||
devices:
|
||||
- *syncthing_desktop_id
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
- name: Copy wezterm terminfo file
|
||||
ansible.builtin.copy:
|
||||
src: 'files/wezterm.terminfo'
|
||||
dest: '{{ ansible_env.HOME }}/.terminfo'
|
||||
dest: /home/sonny/.terminfo
|
||||
mode: '0755'
|
||||
notify: Compile wezterm terminfo file
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
- name: Remove previous Syncthing configurations
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: '{{ ansible_env.HOME }}/.config/syncthing'
|
||||
path: /home/sonny/.config/syncthing
|
||||
state: absent
|
||||
|
||||
- name: Copy docker compose configuration
|
||||
|
|
|
|||
|
|
@ -39,13 +39,13 @@
|
|||
path: '{{ item }}'
|
||||
state: absent
|
||||
loop:
|
||||
- '/etc/systemd/system/transmission-daemon.service.d'
|
||||
- '{{ ansible_env.HOME }}/.config/transmission-daemon'
|
||||
- /etc/systemd/system/transmission-daemon.service.d
|
||||
- /home/sonny/.config/transmission-daemon
|
||||
|
||||
- name: Copy Dockerfile
|
||||
become: true
|
||||
ansible.builtin.copy:
|
||||
src: 'files/transmission/Dockerfile'
|
||||
src: files/transmission/Dockerfile
|
||||
dest: '{{ transmission_app_dir }}/Dockerfile'
|
||||
owner: sonny
|
||||
group: sonny
|
||||
|
|
@ -54,7 +54,7 @@
|
|||
- name: Copy docker compose configuration
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: 'templates/transmission/docker-compose.j2'
|
||||
src: templates/transmission/docker-compose.j2
|
||||
dest: '{{ transmission_app_dir }}/docker-compose.yml'
|
||||
owner: sonny
|
||||
group: sonny
|
||||
|
|
@ -78,7 +78,7 @@
|
|||
- name: Copy NGINX configuration
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: 'templates/transmission/nginx.j2'
|
||||
src: templates/transmission/nginx.j2
|
||||
dest: '{{ transmission_app_dir }}/nginx.conf.d/default.conf'
|
||||
owner: sonny
|
||||
group: sonny
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue