use return code for proper continuation

This commit is contained in:
rene
2022-04-21 17:09:50 +02:00
parent 703c7db3b9
commit 28562a110d

View File

@@ -65,6 +65,7 @@
- { repo: 'ssh://git@gitlab.social.my-wan.de:22422/rene/dotfiles.git', dir: 'dotfiles' } - { repo: 'ssh://git@gitlab.social.my-wan.de:22422/rene/dotfiles.git', dir: 'dotfiles' }
- { repo: 'https://github.com/romkatv/powerlevel10k.git', dir: 'powerlevel10k' } - { repo: 'https://github.com/romkatv/powerlevel10k.git', dir: 'powerlevel10k' }
ignore_errors: yes ignore_errors: yes
register: dotfiles
- name: users | {{ user }} | link dotfiles - name: users | {{ user }} | link dotfiles
become: yes become: yes
@@ -79,8 +80,12 @@
- { src: 'bash/bashrc', dest: '.bashrc' } - { src: 'bash/bashrc', dest: '.bashrc' }
- { src: 'zsh/zshrc', dest: '.zshrc' } - { src: 'zsh/zshrc', dest: '.zshrc' }
- { src: 'tmux/tmux.conf', dest: '.tmux.conf' } - { src: 'tmux/tmux.conf', dest: '.tmux.conf' }
when:
- dotfiles.rc == 0
- name: users | {{ user }} | call dotfile install script - name: users | {{ user }} | call dotfile install script
become: yes become: yes
become_user: '{{ user }}' 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