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
|
- name: Compile wezterm terminfo file
|
||||||
become: true
|
become: true
|
||||||
when: wezterm_copy.changed
|
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:
|
syncthing_folders:
|
||||||
- id: default
|
- id: default
|
||||||
label: Default
|
label: Default
|
||||||
path: '/var/syncthing/default'
|
path: /var/syncthing/default
|
||||||
source_path: '{{ ansible_env.HOME }}/files/sync/'
|
source_path: /home/sonny/files/sync/
|
||||||
type: sendreceive
|
type: sendreceive
|
||||||
devices:
|
devices:
|
||||||
- *syncthing_desktop_id
|
- *syncthing_desktop_id
|
||||||
|
|
@ -35,8 +35,8 @@ syncthing_folders:
|
||||||
|
|
||||||
- id: pictures
|
- id: pictures
|
||||||
label: Pictures
|
label: Pictures
|
||||||
path: '/var/syncthing/pictures'
|
path: /var/syncthing/pictures
|
||||||
source_path: '{{ ansible_env.HOME }}/files/pictures/'
|
source_path: /home/sonny/files/pictures/
|
||||||
type: sendreceive
|
type: sendreceive
|
||||||
devices:
|
devices:
|
||||||
- *syncthing_desktop_id
|
- *syncthing_desktop_id
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
- name: Copy wezterm terminfo file
|
- name: Copy wezterm terminfo file
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: 'files/wezterm.terminfo'
|
src: 'files/wezterm.terminfo'
|
||||||
dest: '{{ ansible_env.HOME }}/.terminfo'
|
dest: /home/sonny/.terminfo
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
notify: Compile wezterm terminfo file
|
notify: Compile wezterm terminfo file
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
- name: Remove previous Syncthing configurations
|
- name: Remove previous Syncthing configurations
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: '{{ ansible_env.HOME }}/.config/syncthing'
|
path: /home/sonny/.config/syncthing
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
- name: Copy docker compose configuration
|
- name: Copy docker compose configuration
|
||||||
|
|
|
||||||
|
|
@ -39,13 +39,13 @@
|
||||||
path: '{{ item }}'
|
path: '{{ item }}'
|
||||||
state: absent
|
state: absent
|
||||||
loop:
|
loop:
|
||||||
- '/etc/systemd/system/transmission-daemon.service.d'
|
- /etc/systemd/system/transmission-daemon.service.d
|
||||||
- '{{ ansible_env.HOME }}/.config/transmission-daemon'
|
- /home/sonny/.config/transmission-daemon
|
||||||
|
|
||||||
- name: Copy Dockerfile
|
- name: Copy Dockerfile
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: 'files/transmission/Dockerfile'
|
src: files/transmission/Dockerfile
|
||||||
dest: '{{ transmission_app_dir }}/Dockerfile'
|
dest: '{{ transmission_app_dir }}/Dockerfile'
|
||||||
owner: sonny
|
owner: sonny
|
||||||
group: sonny
|
group: sonny
|
||||||
|
|
@ -54,7 +54,7 @@
|
||||||
- name: Copy docker compose configuration
|
- name: Copy docker compose configuration
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: 'templates/transmission/docker-compose.j2'
|
src: templates/transmission/docker-compose.j2
|
||||||
dest: '{{ transmission_app_dir }}/docker-compose.yml'
|
dest: '{{ transmission_app_dir }}/docker-compose.yml'
|
||||||
owner: sonny
|
owner: sonny
|
||||||
group: sonny
|
group: sonny
|
||||||
|
|
@ -78,7 +78,7 @@
|
||||||
- name: Copy NGINX configuration
|
- name: Copy NGINX configuration
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: 'templates/transmission/nginx.j2'
|
src: templates/transmission/nginx.j2
|
||||||
dest: '{{ transmission_app_dir }}/nginx.conf.d/default.conf'
|
dest: '{{ transmission_app_dir }}/nginx.conf.d/default.conf'
|
||||||
owner: sonny
|
owner: sonny
|
||||||
group: sonny
|
group: sonny
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue