Skip to content

Commit

Permalink
Add ternary to distinguish between local and remote paths to rclone c…
Browse files Browse the repository at this point in the history
…onfig file
  • Loading branch information
E-VANCE committed Jul 23, 2021
1 parent 416a268 commit 030805d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ rclone_version: "{{ ansible_local.rclone.version | d('0.0.0') }}"
rclone_setup_tmp_dir: "/tmp/rclone_setup"

# The location to install the config file if configured
rclone_config_location: "/home/vagrant/.config/rclone/rclone.conf"
rclone_config_location: "{{ (site_env == 'development') | ternary('/home/vagrant/.config/rclone/rclone.conf','/home/admin/.config/rclone/rclone.conf') }}"

install_manpages: true

Expand Down

0 comments on commit 030805d

Please sign in to comment.