Код: Выделить всё
password: !decrypt LS0tLS1CRUdJ...TiBQRS0tCg==
Код: Выделить всё
def get_loader():
loader = yaml.SafeLoader
loader.add_constructor("!decrypt", decrypt_constructor)
return loader
data = yaml.load(open(file, "rb"), Loader=get_loader())
Код: Выделить всё
ERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each:
JSON: Expecting value: line 1 column 1 (char 0)
Syntax Error while loading YAML.
could not determine a constructor for the tag '!decrypt'
Подробнее здесь: https://stackoverflow.com/questions/713 ... in-ansible
Мобильная версия