pass ansible script as b64 encoded
This commit is contained in:
parent
626b348df6
commit
ab240f7e0d
|
@ -1,5 +1,5 @@
|
||||||
from pyexecplugins.pyexecplugins import PyExecPlugin
|
from pyexecplugins.pyexecplugins import PyExecPlugin
|
||||||
import json
|
import base64
|
||||||
import sys, os, traceback
|
import sys, os, traceback
|
||||||
import shutil
|
import shutil
|
||||||
import logging
|
import logging
|
||||||
|
@ -54,7 +54,7 @@ class Ansible(PyExecPlugin):
|
||||||
|
|
||||||
def __init__(self, data=None, config=None):
|
def __init__(self, data=None, config=None):
|
||||||
super().__init__(data, config)
|
super().__init__(data, config)
|
||||||
self.playbook = self.data.get("playbook")
|
self.playbook = base64.b64decode(self.data.get("playbook"))
|
||||||
self.hosts = self.data.get("hosts", ["localhost"])
|
self.hosts = self.data.get("hosts", ["localhost"])
|
||||||
self.connection = self.data.get("connection","local")
|
self.connection = self.data.get("connection","local")
|
||||||
self.verbosity = self.data.get("verbosity", 0)
|
self.verbosity = self.data.get("verbosity", 0)
|
||||||
|
|
Loading…
Reference in New Issue