Deprecated

Removed in 2.0.0

i

Reason:A new role was released with increased security. | Alternative:Use P(charlesrocket.essential.fetch_vars#role) instead.

charlesrocket.essential.remote_vars (1.3.3) — module

Injects remote variables

Authors: k (@charlesrocket)

This plugin has a corresponding action plugin.

Install collection

Install with ansible-galaxy collection install charlesrocket.essential:==1.3.3


Add to requirements.yml

  collections:
    - name: charlesrocket.essential
      version: 1.3.3

Description

Download variables file from remote hosts and inject it into C(ansible_facts).

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Import user variables
  charlesrocket.essential.remote_vars:
    url: https://www.example.com/user_vars.yml

Inputs

    
url:
    description:
    - Location of a remote YAML file.
    required: true
    type: str

Outputs

ansible_facts:
  description: Updated C(ansible_facts)
  returned: success
  sample:
    variable: value
  type: dict
new_vars:
  description: Downloaded variables
  returned: success
  sample:
    variable: value
  type: dict