mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-06-11 10:35:34 +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
|
||
|---|---|---|
| .. | ||
| ansible | ||