From 379fbe46b77c84a419a0b438b088e65b76406c73 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 11 Nov 2018 18:29:10 +0100 Subject: [PATCH] Add wget configuration --- roles/init/templates/pam_environment.j2 | 3 +++ roles/tools/tasks/main.yml | 6 ++++++ roles/tools/templates/wgetrc.j2 | 1 + 3 files changed, 10 insertions(+) create mode 100644 roles/tools/templates/wgetrc.j2 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 -- 2.41.0