Эх сурвалжийг харах

Add a parameter in dotfiles to no stop login when identity check failed

Emmanuel Bouthenot 10 жил өмнө
parent
commit
85b0359c7b

+ 1 - 0
roles/common/defaults/main.yml

@@ -53,5 +53,6 @@ sysfs_disk_settings: False
 with_dotfiles: False
 dotfiles_repo: 'http://forge.openics.org/server-dotfiles-zsh.git'
 dotfiles_dest: '/srv/hosting-tools/shell'
+dotfiles_lcsshvars: 0
 
 # vim: ft=yaml

+ 1 - 1
roles/common/tasks/dotfiles.yml

@@ -3,5 +3,5 @@
   when: with_dotfiles
 
 - name: Enable sourcing of dotfiles
-  lineinfile: dest=/etc/zsh/zshrc regexp='source {{ dotfiles_dest }}' line='[[ -f {{ dotfiles_dest }}/zsh/zshrc ]] && source {{ dotfiles_dest }}/zsh/zshrc'
+  lineinfile: dest=/etc/zsh/zshrc regexp='source {{ dotfiles_dest }}' line='[[ -f {{ dotfiles_dest }}/zsh/zshrc ]] && export LC_SSH_VARS={{ dotfiles_lcsshvars}} && source {{ dotfiles_dest }}/zsh/zshrc'
   when: with_dotfiles