Move the debug script into a role rather than in the playbook

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2018-08-08 14:58:16 +02:00
parent 0c064fa4b7
commit ba9844b8ef
3 changed files with 18 additions and 19 deletions

View file

@ -1,25 +0,0 @@
#!/usr/bin/python2
import json
import os
import sys
print(os.environ.get('TEST_VARIABLE'))
msg = sys.argv[1]
msg = json.loads(msg)
user = msg['owner']
name = msg['name']
epoch = msg['epoch']
version = msg['version']
release = msg['release']
instance = msg['instance']
print(
'{0} built: {1}:{2}-{3}-{4} in {5}'.format(
user, name, epoch, version, release, instance)
)
print('Plugin done')