snakems.ansible.keepass_inventory (1.0.5) — inventory

KeePass inventory source

Authors: Mironenko Sergey (@snakems)

Install collection

Install with ansible-galaxy collection install snakems.ansible:==1.0.5


Add to requirements.yml

  collections:
    - name: snakems.ansible
      version: 1.0.5

Description

Get inventory hosts from KeePass database.

Uses a YAML configuration file that ends with C(keepass.(yml|yaml), keepass_hosts.(yml|yaml)).


Requirements

Inputs

    
plugin:
    choices:
    - keepass_inventory
    - snakems.ansible.keepass_inventory
    description: Token that ensures this is a source file for the plugin.
    required: true

keepass_key:
    description: Path to key-file. Set if needed
    env:
    - name: ANSIBLE_KEEPASS_KEY
    ini:
    - key: key
      section: keepass

keepass_pass:
    description: Pasword for KeePass database. If not set, it will be prompted
    env:
    - name: ANSIBLE_KEEPASS_PASSWORD
    - name: ANSIBLE_KEEPASS_PASS
    ini:
    - key: password
      section: keepass

keepass_root:
    description: Directory from which to take hosts
    env:
    - name: ANSIBLE_KEEPASS_ROOT
    ini:
    - key: root
      section: keepass
    required: true

keepass_database:
    description: Path to KeePass database
    env:
    - name: ANSIBLE_KEEPASS_DATABASE
    ini:
    - key: database
      section: keepass
    required: true

keepass_host_template:
    description: Hostname title template. Must contain <hostname>
    env:
    - name: ANSIBLE_KEEPASS_HOST_TEMPLATE
    ini:
    - key: host_template
      section: keepass