diff --git a/examples/playbook/Makefile b/examples/playbook/Makefile new file mode 100644 index 00000000..8c9e4480 --- /dev/null +++ b/examples/playbook/Makefile @@ -0,0 +1,4 @@ + +all: \ + modules/binary_producing_junk \ + modules/binary_producing_json diff --git a/examples/playbook/modules/binary_producing_json.c b/examples/playbook/modules/binary_producing_json.c new file mode 100644 index 00000000..989e5e3e --- /dev/null +++ b/examples/playbook/modules/binary_producing_json.c @@ -0,0 +1,13 @@ +#include + + +int main(void) +{ + fprintf(stderr, "binary_producing_json: oh noes\n"); + printf("{" + "\"changed\": true, " + "\"failed\": false, " + "\"msg\": \"Hello, world.\"" + "}\n"); + return 0; +} diff --git a/examples/playbook/modules/binary_producing_junk.c b/examples/playbook/modules/binary_producing_junk.c new file mode 100644 index 00000000..f6b68462 --- /dev/null +++ b/examples/playbook/modules/binary_producing_junk.c @@ -0,0 +1,9 @@ +#include + + +int main(void) +{ + fprintf(stderr, "binary_producing_junk: oh noes\n"); + printf("Hello, world.\n"); + return 0; +} diff --git a/examples/playbook/modules/single_null_binary b/examples/playbook/modules/single_null_binary new file mode 100755 index 00000000..1f2a4f5e Binary files /dev/null and b/examples/playbook/modules/single_null_binary differ