Hello Everyone!

I trying to install ohmyzsh using ansible inside of a bigger yml file with 
a bunch of other sutff.
in hte ansible.builtin.expect block the goal is to anwser one  installation 
question but it waits for the timeou and display a huge error message.
Basically sucessfully install ohmyzsh but not awnser the installation 
question.
 
What you guys think, I'm doing wrong or have a better way to do it?

- name: Check if Oh My Zsh is installed
stat:
path: /home/rreis/.oh-my-zsh
register: ohmyzsh_installed

- name: Install Oh My Zsh
ansible.builtin.expect:
command: sh /home/rreis/install.sh
responses:
'Do you want to change your default shell to zsh? \[Y/n\]:': "Y\n"
timeout: 30
when: ohmyzsh_installed.stat.exists == false

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/3708b636-7b93-48e0-b119-65d24863bab7n%40googlegroups.com.

Reply via email to