Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
| #!/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 |