Files @ cdf411165c6e
Branch filter:

Location: ChaosStuff/cnc-dashboard/roles/python/tasks/3.yml

Dennis Fink
Double quote to prevent globbing and word splitting.

https://www.shellcheck.net/wiki/SC2086
- name: Pacman keyring + Python installation
  delegate_to: localhost
  ansible.builtin.shell: |
    expect <<EOD
    spawn sshpass -p alarm ssh \
      -o UserKnownHostsFile=/dev/null \
      -o StrictHostKeyChecking=no \
      -o PubkeyAuthentication=false \
      alarm@{{ inventory_hostname }} \
      "su -c \"touch SUDOTEST; touch SUDOTEST2; touch SUDOTEST3\""
    expect "Password: "
    send -- "root\r"
    interact
    EOD





#spawn sshpass -p alarm ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o PubkeyAuthentication=false alarm@{{ inventory_hostname }} "su -c \"touch SUDOTEST\; touch SUDOTEST2\; touch SUDOTEST3\""
#spawn sshpass -p alarm ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o PubkeyAuthentication=false alarm@{{ inventory_hostname }} "su -c \"pacman-key --init\; pacman-key --populate archlinuxarm\; pacman --noconfirm -S python\""