Fix documentation issues (#80)

Fixed documentation issues

Reviewed-by: https://github.com/apps/ansible-zuul
pull/82/head
Priyam Sahoo 2021-06-22 05:18:07 +05:30 committed by GitHub
parent 715234af8e
commit e0551c0127
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 4 deletions

View File

@ -25,5 +25,7 @@ sections:
- Bugfixes - Bugfixes
- - known_issues - - known_issues
- Known Issues - Known Issues
- - doc_changes
- Documentation Changes
title: Ansible Utils Collection title: Ansible Utils Collection
trivial_section_name: trivial trivial_section_name: trivial

View File

@ -0,0 +1,3 @@
---
doc_changes:
- Update doc for usable_range filter plugin

View File

@ -137,7 +137,7 @@ Examples
#### Simple Use-case (looping through the list result) #### Simple Use-case (looping through the list result)
- name: Expand and produce list of usable IP addresses in 192.0.2.0/28 - name: Expand and produce list of usable IP addresses in 127.0.0.0/28
ansible.builtin.set_fact: ansible.builtin.set_fact:
data1: "{{ '127.0.0.0/28' | ansible.utils.usable_range }}" data1: "{{ '127.0.0.0/28' | ansible.utils.usable_range }}"
@ -145,7 +145,7 @@ Examples
shell: "ping -c 1 {{ item }}" shell: "ping -c 1 {{ item }}"
loop: "{{ data1.usable_ips[1:] }}" loop: "{{ data1.usable_ips[1:] }}"
# TASK [Expand and produce list of usable IP addresses in 192.0.2.0/28] ****************************** # TASK [Expand and produce list of usable IP addresses in 127.0.0.0/28] ******************************
# ok: [localhost] # ok: [localhost]
# TASK [Ping all but first IP addresses from the generated list] ************************************* # TASK [Ping all but first IP addresses from the generated list] *************************************

View File

@ -112,7 +112,7 @@ EXAMPLES = r"""
#### Simple Use-case (looping through the list result) #### Simple Use-case (looping through the list result)
- name: Expand and produce list of usable IP addresses in 192.0.2.0/28 - name: Expand and produce list of usable IP addresses in 127.0.0.0/28
ansible.builtin.set_fact: ansible.builtin.set_fact:
data1: "{{ '127.0.0.0/28' | ansible.utils.usable_range }}" data1: "{{ '127.0.0.0/28' | ansible.utils.usable_range }}"
@ -120,7 +120,7 @@ EXAMPLES = r"""
shell: "ping -c 1 {{ item }}" shell: "ping -c 1 {{ item }}"
loop: "{{ data1.usable_ips[1:] }}" loop: "{{ data1.usable_ips[1:] }}"
# TASK [Expand and produce list of usable IP addresses in 192.0.2.0/28] ****************************** # TASK [Expand and produce list of usable IP addresses in 127.0.0.0/28] ******************************
# ok: [localhost] # ok: [localhost]
# TASK [Ping all but first IP addresses from the generated list] ************************************* # TASK [Ping all but first IP addresses from the generated list] *************************************