Skip to content

Commit

Permalink
Remove unused playbook
Browse files Browse the repository at this point in the history
  • Loading branch information
abikouo committed Jan 9, 2024
1 parent 37805f4 commit b45004c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.

This file was deleted.

13 changes: 3 additions & 10 deletions tests/integration/targets/test_playbook_webapp/runme.sh
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
#!/usr/bin/env bash

# generate inventory with access_key provided through a templated variable
ansible-playbook create_aws_credentials.yml "$@"
source access_key.sh

set -eux

function cleanup() {
set +x
source access_key.sh
set -x
ansible-playbook webapp.yaml -e "operation=delete" "$@"
ansible-playbook test_webapp.yaml -e "operation=delete" "$@"
exit 1
}

trap 'cleanup "${@}"' ERR

# Create web application
ansible-playbook webapp.yaml "$@"
ansible-playbook test_webapp.yaml "$@"

# Delete web application
ansible-playbook webapp.yaml -e "operation=delete" "$@"
ansible-playbook test_webapp.yaml -e "operation=delete" "$@"

0 comments on commit b45004c

Please sign in to comment.