8e19ab178a
Change: Rather than only using config, have base connection plugins fall back to play_context. Test Plan: - Tested ansible-connection logic against an IOS device - Tested -k against a VM - CI Signed-off-by: Rick Elrod <rick@elrod.me>
14 lines
489 B
YAML
14 lines
489 B
YAML
- hosts: vyos-1-1-8
|
|
connection: ansible.netcommon.network_cli
|
|
become: true
|
|
gather_facts: false
|
|
|
|
tasks:
|
|
- name: Create user with password
|
|
register: result
|
|
vyos.vyos.vyos_config:
|
|
lines:
|
|
- set system login user atester full-name "Ansible Tester"
|
|
- set system login user atester authentication plaintext-password testymctest
|
|
- set system login user jsmith level admin
|
|
- delete service ssh disable-password-authentication
|