Skip to content

Ansible collection for general modules.

License

Notifications You must be signed in to change notification settings

jomrr/ansible-collection-general

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible collection: jomrr.general

Documentation for the collection jomrr.general.

Modules

jomrr.general.gen_mac_from_name

Used with roles kickstart and virtinstall to generate reproducable MACs for VMs.

Installation

molecule.yml

Specify the requirements file in molecule.yml:

---
# file: molecule/default/molecule.yml
dependency:
  name: galaxy
  options:
    requirements-file: requirements.yml

requirements.yml

---

collections:
  - name: git+https://github.com/jomrr/ansible-collection-general.git
    version: main

This automatically installs into the namespace jomrr defined in galaxy.yml.

Usage

Example for gen_mac_from_name

Usage in role task to generate 2 MACs for host test_guest:

    - name: "Generate reproducable MAC Address(es) from name/fqdn"
      jomrr.general.gen_mac_from_name:
        name: "test_guest"
        count: 2

License and Author

Licensed under MIT License. See LICENSE file in repository.