Files @ 502fdc081d35
Branch filter:

Location: majic-ansible-roles/roles/backup_client/files/duply_pre

branko
MAR-32: Added initial scaffolding for testing web_server role:

- Added Molecule configuration for for bringing up a couple of instances.
- Added test playbook that sets-up test instances.
- Fixed issues with file mode in tasks (added leading 0).
- Added test data (TLS private keys and certificates).
- Added dummy test file.
#!/bin/bash

result=0
for binary in /etc/duply/main/pre.d/*; do
    if [[ -f "$binary" && -x "$binary" ]]; then
        if ! "$binary"; then
            echo "Failed running pre-task '$binary'" >&2
            result=1
        fi
    fi
done

exit "$result"