Fix commands hanging for stdin
This commit is contained in:
parent
9677d40e50
commit
9b4bd5e64c
2 changed files with 3 additions and 1 deletions
|
@ -8,13 +8,14 @@
|
||||||
when: ansible_facts['distribution'] == 'Archlinux'
|
when: ansible_facts['distribution'] == 'Archlinux'
|
||||||
|
|
||||||
- name: Add gpg key for librewolf
|
- 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'
|
when: ansible_facts['distribution'] == 'Archlinux'
|
||||||
|
|
||||||
- name: Make and install librewolf (Archlinux)
|
- name: Make and install librewolf (Archlinux)
|
||||||
command:
|
command:
|
||||||
cmd: makepkg -cirs --needed
|
cmd: makepkg -cirs --needed
|
||||||
chdir: ~/builds/librewolf-bin
|
chdir: ~/builds/librewolf-bin
|
||||||
|
stdin: Y
|
||||||
when: ansible_facts['distribution'] == 'Archlinux'
|
when: ansible_facts['distribution'] == 'Archlinux'
|
||||||
register: result
|
register: result
|
||||||
changed_when: "'installing existing package' not in result.stderr"
|
changed_when: "'installing existing package' not in result.stderr"
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
command:
|
command:
|
||||||
cmd: makepkg -cirs --needed
|
cmd: makepkg -cirs --needed
|
||||||
chdir: ~/builds/powershell-bin
|
chdir: ~/builds/powershell-bin
|
||||||
|
stdin: Y
|
||||||
when: ansible_facts['distribution'] == 'Archlinux'
|
when: ansible_facts['distribution'] == 'Archlinux'
|
||||||
register: result
|
register: result
|
||||||
changed_when: "'installing existing package' not in result.stderr"
|
changed_when: "'installing existing package' not in result.stderr"
|
||||||
|
|
Loading…
Add table
Reference in a new issue