return value did not work

This commit is contained in:
rene
2022-04-21 18:12:27 +02:00
parent aea49d0896
commit 79601eac67

View File

@@ -65,7 +65,6 @@
- { repo: 'https://github.com/romkatv/powerlevel10k.git', dir: 'powerlevel10k' }
- { repo: 'ssh://git@gitlab.social.my-wan.de:22422/rene/dotfiles.git', dir: 'dotfiles' }
ignore_errors: yes
register: dotfiles
- name: users | {{ user }} | link dotfiles
become: yes
@@ -81,12 +80,9 @@
- { 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"
when:
- dotfiles.rc == 0
ignore_errors: yes