use return code for proper continuation
This commit is contained in:
@@ -65,6 +65,7 @@
|
||||
- { repo: 'ssh://git@gitlab.social.my-wan.de:22422/rene/dotfiles.git', dir: 'dotfiles' }
|
||||
- { repo: 'https://github.com/romkatv/powerlevel10k.git', dir: 'powerlevel10k' }
|
||||
ignore_errors: yes
|
||||
register: dotfiles
|
||||
|
||||
- name: users | {{ user }} | link dotfiles
|
||||
become: yes
|
||||
@@ -79,8 +80,12 @@
|
||||
- { src: 'bash/bashrc', dest: '.bashrc' }
|
||||
- { src: 'zsh/zshrc', dest: '.zshrc' }
|
||||
- { src: 'tmux/tmux.conf', dest: '.tmux.conf' }
|
||||
when:
|
||||
- dotfiles.rc == 0
|
||||
|
||||
- name: users | {{ user }} | call dotfile install script
|
||||
become: yes
|
||||
become_user: '{{ user }}'
|
||||
shell: "POWERLINE=n BASHIT=y ZSHCUSTOM=n {{ getent_passwd[user][4] }}/dotfiles/install.sh"
|
||||
shell: "POWERLINE=n BASHIT=y ZSHCUSTOM=n {{ getent_passwd[user][4] }}/dotfiles/install.sh"
|
||||
when:
|
||||
- dotfiles.rc == 0
|
||||
Reference in New Issue
Block a user