Skip to content

Instantly share code, notes, and snippets.

@fopina
Created May 16, 2018 13:44
Show Gist options
  • Save fopina/95620ac28658968f058755782e65a7c6 to your computer and use it in GitHub Desktop.
Save fopina/95620ac28658968f058755782e65a7c6 to your computer and use it in GitHub Desktop.
Disable IPv6 in MEO Router ansible
# requires ansible 2.4
# usage:
# ansible-playbook playbook.yml -i 192.168.1.254,
- hosts: all
gather_facts: false
tasks:
# ansible 2.4 telnet plugin does not add \r
# and the router requires it so...
- name: disable ipv6 in meo router
telnet:
# the default login
user: "sumeo\r"
password: "bfd,10ng\r"
login_prompt: "Username : "
password_prompt: "Password : "
prompts:
- "{sumeo}=>"
command:
- "dhcp serverv6 config state=disabled\r"
- "ip ifconfig intf=LocalNetwork ipv6=disabled\r"
- "saveall\r"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment