[python] convert dictionary to yaml and vice versa

Nornir framework comes with the pyyaml module installed, hence I do not need to install pyyaml. Convert dictionary to yaml The purpose is to accept json data from the api gateway and convert this into yaml in the backend to be sent over to ansible through nornir. The below is a test on convert dictionary … Continue reading [python] convert dictionary to yaml and vice versa

Advertisement

[python]Show version with Ansible

Introduction These python scripts do the following: init_vault.py, initialized the vault and create an encryption key. The initialization creates 5 keys and 1 root token for unsealing and login the vault respectively. get_vault_resuly.py, this script gets the keys and token to unseal and login the vault. vault_mgmt.py, this script gets the key and value pair … Continue reading [python]Show version with Ansible