2020-05-29 22:45:33 +02:00
|
|
|
- hosts: vyos
|
2020-05-29 17:00:21 +02:00
|
|
|
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
|