From: Ismaƫl Bouya Date: Sun, 11 Nov 2018 17:29:10 +0000 (+0100) Subject: Add wget configuration X-Git-Tag: v1.0~23 X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FAnsible.git;a=commitdiff_plain;h=379fbe46b77c84a419a0b438b088e65b76406c73 Add wget configuration --- diff --git a/roles/init/templates/pam_environment.j2 b/roles/init/templates/pam_environment.j2 index 3b8e96e..0eb0f89 100644 --- a/roles/init/templates/pam_environment.j2 +++ b/roles/init/templates/pam_environment.j2 @@ -68,6 +68,9 @@ TMUX_TMPDIR DEFAULT="${XDG_RUNTIME_DIR}" # Zeal DASHT_DOCSETS_DIR DEFAULT="${XDG_DATA_HOME}/Zeal/Zeal/docsets/" +# Wget +WGETRC DEFAULT="${XDG_CONFIG_HOME}/wgetrc" + # node_modules/pm2/paths.js PM2_HOME DEFAULT="${XDG_DATA_HOME}/pm2" PM2_CONF_FILE DEFAULT="${XDG_CONFIG_HOME}/pm2/conf.js" diff --git a/roles/tools/tasks/main.yml b/roles/tools/tasks/main.yml index 3fa7d35..9c540d5 100644 --- a/roles/tools/tasks/main.yml +++ b/roles/tools/tasks/main.yml @@ -12,6 +12,12 @@ loop: - htop/htoprc - mplayer/config +- name: template config files + template: + src: "{{ item }}.j2" + dest: "$XDG_CONFIG_HOME/{{ item }}" + loop: + - wgetrc - name: postgresql block: - name: psql config file diff --git a/roles/tools/templates/wgetrc.j2 b/roles/tools/templates/wgetrc.j2 new file mode 100644 index 0000000..e5b19bb --- /dev/null +++ b/roles/tools/templates/wgetrc.j2 @@ -0,0 +1 @@ +hsts-file = {{ lookup("env", "XDG_CACHE_HOME") }}/wget-hsts