mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2024-05-26 16:36:04 +02:00
install_arch: Use shell instead of command
shell is like command but runs the command through a shell, so that piping will work.
This commit is contained in:
parent
9a9113d1b1
commit
34a72b68b7
|
@ -165,7 +165,7 @@
|
|||
template: src=sshd_config.j2 dest=/mnt/etc/ssh/sshd_config owner=root group=root mode=0644
|
||||
|
||||
- name: clean pacman cache
|
||||
command: yes | chroot /mnt pacman -Scc
|
||||
shell: yes | chroot /mnt pacman -Scc # noqa risky-shell-pipe ("Illegal option -o pipefail" in Hetzner's recovery environment (dash?))
|
||||
register: chroot_pacman_clean_cache
|
||||
changed_when: "chroot_pacman_clean_cache.rc == 0"
|
||||
|
||||
|
|
Loading…
Reference in New Issue