ansible-taler-exchange

Ansible playbook to deploy a production Taler Exchange
Log | Files | Refs | README | LICENSE

test.sh (723B)


      1 #!/bin/bash
      2 set -exuo pipefail
      3 
      4 # Build our image
      5 podman build -f Containerfile -t ansible-taler-test
      6 
      7 # Run in background (-d) with systemd init
      8 podman run \
      9 	--rm \
     10 	--name ansible-taler-test \
     11 	-p 127.0.0.1:8022:22 \
     12 	--systemd=always \
     13 	-d localhost/ansible-taler-test sh -c "exec /usr/sbin/init --show-status"
     14 
     15 # Print to log that container is running
     16 podman ps
     17 
     18 # Clear out fingerprint from any past runs. The container gets fresh host
     19 # keys every time. Tolerate the file not existing yet.
     20 ssh-keygen -f "$HOME/.ssh/known_hosts" -R "[127.0.0.1]:8022" || true
     21 
     22 # Run our playbook(s)
     23 ansible-playbook \
     24     --verbose \
     25     -i inventories/default \
     26     -l "podman-localhost" \
     27     --user root \
     28     playbooks/setup.yml