Fix commands hanging for stdin

This commit is contained in:
flyingscorpio@clevo 2022-06-03 21:30:28 +02:00
parent 9677d40e50
commit 9b4bd5e64c
2 changed files with 3 additions and 1 deletions

View file

@ -8,13 +8,14 @@
when: ansible_facts['distribution'] == 'Archlinux'
- name: Add gpg key for librewolf
command: gpg --keyserver hkp://keyserver.ubuntu.com --search-keys 031F7104E932F7BD7416E7F6D2845E1305D6E801
command: gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 031F7104E932F7BD7416E7F6D2845E1305D6E801
when: ansible_facts['distribution'] == 'Archlinux'
- name: Make and install librewolf (Archlinux)
command:
cmd: makepkg -cirs --needed
chdir: ~/builds/librewolf-bin
stdin: Y
when: ansible_facts['distribution'] == 'Archlinux'
register: result
changed_when: "'installing existing package' not in result.stderr"

View file

@ -11,6 +11,7 @@
command:
cmd: makepkg -cirs --needed
chdir: ~/builds/powershell-bin
stdin: Y
when: ansible_facts['distribution'] == 'Archlinux'
register: result
changed_when: "'installing existing package' not in result.stderr"