amarao: (Default)
[personal profile] amarao

Добавил режим state=query.

Теперь можно сделать так:

    - name: Get ip information from agge interface
      amarao.ip.ip_address:
        name: agge
        state: query
      register: addr
    - debug: var=addr

и получить вот так:

"addr": {
    "addresses_v4": [
        "173.237.37.20/29"
    ],
    "addresses_v6": [
        "2600:9c00:3:2::/64",
        "2600:9c00:999::54/125",
        "fe80::b696:91ff:fe5d:a126/64"
    ],
    "changed": false,
    "failed": false
}

Прям с маской, чего нельзя в ansible_ipv6_addresses.

https://galaxy.ansible.com/amarao/ip

Profile

amarao: (Default)
amarao

May 2026

S M T W T F S
     12
3 4 567 89
101112 13141516
17181920 2122 23
242526 27 282930
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 28th, 2026 03:53 pm
Powered by Dreamwidth Studios