Skip to content

Support for Ansible's encrypt_string #16

@grandchild

Description

@grandchild

Ansible now supports (and has for a while) encrypting only parts of a file, i.e. a YAML value into a vault-encrypted string: See encrypt_string.

Support for this would be great. I tried implementing it myself, but only half succeeded, before giving up, because I couldn't convince sublime-text to do my bidding.

Ideally one would highlight the value (even only part of the value should work, since you can work out the innermost common ancestor of the start and end position in yaml) and then hit encrypt and it would be replaced inline.

If code for the yaml-ancestry foo is desired I can dig up my code from a few months ago.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions