openafs_contrib.openafs.openafs_store_facts (1.9.0) — module

Store OpenAFS facts in a json file

Authors: Michael Meffie

preview | supported by community

Install collection

Install with ansible-galaxy collection install openafs_contrib.openafs:==1.9.0


Add to requirements.yml

  collections:
    - name: openafs_contrib.openafs
      version: 1.9.0

Description

Store facts in the json formatted c(openafs.fact) file on the remote host. This file is located in the c(/etc/ansible/facts.d) directory or the path specified by the c(factsdir) parameter. The c(openafs.fact) file is read by Ansible when facts are gathered on subsequent plays.

The c(openafs.fact) contains a dictionary of facts which can be accessed from c(ansible_local.openafs).

Inputs

    
state:
    choices:
    - update
    description:
    - c(update) update the facts

factsdir:
    default: /etc/ansible/facts.d
    description: Path to the c(openafs.fact) file
    type: path