https://github.com/jomrr/ansible-collection-general
Ansible collection for general modules.
https://github.com/jomrr/ansible-collection-general
ansible ansible-collection general mac-address
Last synced: about 1 month ago
JSON representation
Ansible collection for general modules.
- Host: GitHub
- URL: https://github.com/jomrr/ansible-collection-general
- Owner: jomrr
- License: mit
- Created: 2022-06-07T19:00:48.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-07T10:40:25.000Z (almost 2 years ago)
- Last Synced: 2025-02-12T20:17:07.826Z (over 1 year ago)
- Topics: ansible, ansible-collection, general, mac-address
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```yaml
---
# file: molecule/default/molecule.yml
dependency:
name: galaxy
options:
requirements-file: requirements.yml
```
### requirements.yml
```yaml
---
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`:
```yaml
- name: "Generate reproducable MAC Address(es) from name/fqdn"
jomrr.general.gen_mac_from_name:
name: "test_guest"
count: 2
```
## License and Author
- Author:: [jomrr](https://github.com/jomrr/)
- Copyright:: 2022, [jomrr](https://github.com/jomrr/)
Licensed under [MIT License](https://opensource.org/licenses/MIT).
See [LICENSE](https://github.com/jomrr/ansible-role-virtinstall/blob/master/LICENSE) file in repository.