kemopq.hello_world.signfile (1.0.0) — module

Sign a file with name and date

| "added in version" 0.0.1 of kemopq.hello_world"

Authors: Klemen Pogacnik (@kemopq)

Install collection

Install with ansible-galaxy collection install kemopq.hello_world:==1.0.0


Add to requirements.yml

  collections:
    - name: kemopq.hello_world
      version: 1.0.0

Description

Module inserts user and date in the first line of the file.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Pass in a message
- name: Insert user and date to file
  kemopq.hello_word.signfile:
    name: Bruce Willis
    file: /tmp/testfile.txt

Inputs

    
name:
    description: Name of a user who wants to sign file.
    required: true
    type: str

path:
    description: Path to file
    required: true
    type: str

Outputs

stat:
  description: Status of the file (true if the file exists, false if not).
  returned: always
  sample: 'true'
  type: boolean