summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@fretlink.com>2018-11-11 18:29:10 +0100
committerIsmaël Bouya <ismael.bouya@fretlink.com>2018-11-11 18:42:46 +0100
commit379fbe46b77c84a419a0b438b088e65b76406c73 (patch)
tree35c548242c22c61d24b3f91a842362631ef65089
parentf713a12c475c3e405de0c3a474dc1af3b892b154 (diff)
downloadAnsible-379fbe46b77c84a419a0b438b088e65b76406c73.tar.gz
Ansible-379fbe46b77c84a419a0b438b088e65b76406c73.tar.zst
Ansible-379fbe46b77c84a419a0b438b088e65b76406c73.zip
Add wget configuration
-rw-r--r--roles/init/templates/pam_environment.j23
-rw-r--r--roles/tools/tasks/main.yml6
-rw-r--r--roles/tools/templates/wgetrc.j21
3 files changed, 10 insertions, 0 deletions
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}"
68# Zeal 68# Zeal
69DASHT_DOCSETS_DIR DEFAULT="${XDG_DATA_HOME}/Zeal/Zeal/docsets/" 69DASHT_DOCSETS_DIR DEFAULT="${XDG_DATA_HOME}/Zeal/Zeal/docsets/"
70 70
71# Wget
72WGETRC DEFAULT="${XDG_CONFIG_HOME}/wgetrc"
73
71# node_modules/pm2/paths.js 74# node_modules/pm2/paths.js
72PM2_HOME DEFAULT="${XDG_DATA_HOME}/pm2" 75PM2_HOME DEFAULT="${XDG_DATA_HOME}/pm2"
73PM2_CONF_FILE DEFAULT="${XDG_CONFIG_HOME}/pm2/conf.js" 76PM2_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 @@
12 loop: 12 loop:
13 - htop/htoprc 13 - htop/htoprc
14 - mplayer/config 14 - mplayer/config
15- name: template config files
16 template:
17 src: "{{ item }}.j2"
18 dest: "$XDG_CONFIG_HOME/{{ item }}"
19 loop:
20 - wgetrc
15- name: postgresql 21- name: postgresql
16 block: 22 block:
17 - name: psql config file 23 - 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