mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-03 17:23:09 +00:00
Example:
---
- hosts: local
tasks:
- set_fact: mac_str="52:54:00:00:00:00"
- set_fact: base_mac="{{ mac_str | macaddr('int') }}"
- debug: msg="{{ (base_mac|int + 257) | macaddr('linux') }}" # 52:54:00:00:01:01