diff options
author | Robin Obůrka <r.oburka@gmail.com> | 2016-04-10 18:12:18 +0200 |
---|---|---|
committer | Robin Obůrka <r.oburka@gmail.com> | 2016-04-10 18:48:40 +0200 |
commit | d859a30cd1ccc78caee035ec29ec5e772f773c11 (patch) | |
tree | 0968a3857783328d4a5c59105c850fdeb5e9b3be /uci.py | |
parent | Add support for lists (diff) | |
download | ansible-uci-d859a30cd1ccc78caee035ec29ec5e772f773c11.tar.xz |
Add documentation of lists
Diffstat (limited to 'uci.py')
-rw-r--r-- | uci.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -85,6 +85,12 @@ EXAMPLES = ''' # Delete option in named section dhcp.computer.ip (doesn't delete empty section) - uci: p=dhcp s=computer name=ip val=1.0.0.0 state=absent +# Add item to list in named section dhcp.lan.dhcp_option=4,1.0.0.15 +- uci: p=dhcp s=lan name=dhcp_option val=4,1.0.0.15 item=list + +# Delete item from list in named section dhcp.lan.dhcp_option=4,1.0.0.15 +- uci: p=dhcp s=lan name=dhcp_option val=4,1.0.0.5 item=list state=absent + # Create new named section of type host - uci: p=dhcp s=computer2 type=host |