This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env python3 | |
import os | |
import re | |
import yaml | |
import ast | |
import pprint | |
import configparser | |
import subprocess | |
import argparse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import (absolute_import, division, print_function) | |
__metaclass__ = type | |
import re | |
from ansible.errors import AnsibleError | |
from ansible.plugins.lookup import LookupBase | |
from ansible.plugins.filter.core import flatten | |
from ansible.module_utils.six import string_types |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""Filter for "ansible-vault"ing YAML Data Values | |
https://gist.github.com/utoddl/66baa4154618ba1fc8ec8127483e7e89 | |
This script allows an ansible user to pass lines of yaml data | |
through it to get string values vaulted and/or already-vaulted values | |
unvaulted, thus simplifying the maintenance of vaulted strings in | |
Ansible vars files and eliminating the need to vault entire files. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# Copyright: (c) 2020, Todd M. Lewis <[email protected]> | |
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) | |
from __future__ import absolute_import, division, print_function | |
DOCUMENTATION = """ | |
lookup: polymac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl -w | |
# generate files to test .jsf colors. | |
# (c) 2019 [email protected] | |
# GPL | |
use strict; | |
syntax() if @ARGV; | |
sub syntax { | |
print qq[Usage: $0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# This is a comment. | |
NoComments: | |
aa: "Not # a # comment." | |
bb: Also#not a comment. | |
cc: Also# not a comment. | |
dd: ' # not a comment ' | |
Comments: | |
dd: This #ends with a comment. | |
ee: This also # ends with a comment. |