ansible-taler-exchange

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

test.sh (629B)


      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
     19 ssh-keygen -f "$HOME/.ssh/known_hosts" -R "[127.0.0.1]:8022"
     20 
     21 # Run our playbook(s)
     22 ansible-playbook \
     23     --verbose \
     24     -i inventories/default \
     25     -l "podman-localhost" \
     26     --user root \
     27     playbooks/setup.yml