]> git.immae.eu Git - perso/Immae/Config/Ansible.git/commitdiff
Add wget configuration
authorIsmaël Bouya <ismael.bouya@fretlink.com>
Sun, 11 Nov 2018 17:29:10 +0000 (18:29 +0100)
committerIsmaël Bouya <ismael.bouya@fretlink.com>
Sun, 11 Nov 2018 17:42:46 +0000 (18:42 +0100)
roles/init/templates/pam_environment.j2
roles/tools/tasks/main.yml
roles/tools/templates/wgetrc.j2 [new file with mode: 0644]

index 3b8e96e074d6d6d153cac4e8416bf801b9d347bb..0eb0f8977675ca1119dfad239663ae0640911b4f 100644 (file)
@@ -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"
index 3fa7d35ffa58eda6049e9cbcd85ad28cc3340f81..9c540d5f33df708418041cbfe00bdccfefe9fae1 100644 (file)
   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 (file)
index 0000000..e5b19bb
--- /dev/null
@@ -0,0 +1 @@
+hsts-file = {{ lookup("env", "XDG_CACHE_HOME") }}/wget-hsts