home-server/roles/dev.inc/tasks/arch-chroot.yml

11 lines
359 B
YAML

- name: replace /usr/bin/arch-chroot in Podman
copy:
content: |
#!/usr/bin/env bash
args=()
while [ $# -gt 1 ]; do shift; args+=("$(printf "%q" "$1")"); done
[ -t 0 ] && t=-t || t=-T
exec ssh -i ~/.ssh/id-chroot -o StrictHostKeyChecking=no $t -p 20022 -t 10.0.2.2 "${args[@]}"
dest: /usr/bin/arch-chroot
mode: 0755