diff options
author | vista- <hegyi.mokka@gmail.com> | 2018-08-01 21:32:57 +0200 |
---|---|---|
committer | ansibot <ansibot@users.noreply.github.com> | 2018-08-01 15:32:57 -0400 |
commit | f81e2580434db1926537ba94885f00ce9fefe375 (patch) | |
tree | 435f0457665f53376aa4fbc58a77a5a45e1d6db7 /lib/ansible/modules/network/cumulus | |
parent | af6b9799aa32dfdc5363dcad69713bc0e698a233 (diff) | |
download | ansible-f81e2580434db1926537ba94885f00ce9fefe375.tar.gz |
NCLU - Add example: Changing the hostname and committing on Cumulus Linux (#42872)
* Add example to change the hostname and commit on Cumulus Linux
* Modify phrasing a bit
Diffstat (limited to 'lib/ansible/modules/network/cumulus')
-rw-r--r-- | lib/ansible/modules/network/cumulus/nclu.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/ansible/modules/network/cumulus/nclu.py b/lib/ansible/modules/network/cumulus/nclu.py index 0aa5f0d92c..d0f422708f 100644 --- a/lib/ansible/modules/network/cumulus/nclu.py +++ b/lib/ansible/modules/network/cumulus/nclu.py @@ -64,6 +64,12 @@ EXAMPLES = ''' - add int swp1 - add int swp2 +- name: Modify hostname to Cumulus-1 and commit the change + nclu: + commands: + - add hostname Cumulus-1 + commit: true + - name: Add 48 interfaces and commit the change. nclu: template: | |