Guest User

Untitled

a guest
Jan 16th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. for f in ansible/vars/*
  4. do
  5. LINE=$(head -n 1 $f)
  6. if [ "$LINE" != "\$ANSIBLE_VAULT;1.1;AES256" ]; then
  7. echo "File "$f" is not a valid ansible vault!"
  8. exit 1
  9. fi
  10. done
Add Comment
Please, Sign In to add comment