This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Source arguments from Ansible | |
| # These are passed into the module as $1 with a key=value format | |
| # Sourcing this file sets the variables defined in the Ansible module | |
| # Note that variables that are unused in the module are silently ignored | |
| source $1 | |
| # Helper function to fail the module with the specified error | |
| # This can accept $@ in printf for the full error |
NewerOlder