умолчанию использует kerberos, даже если в host указано явно.
                  
                  
                  В какую сторону двигаться устранению ошибки? 
                  
                  
                  
                  
                  
                  В основном управляю windows хостами, но теперь надо еще RouterOS.
                  
                  
                  
                  
                  
                  host:
                  
                  
                  routers:
                  
                  
                    hosts: 
                  
                  
                      192.168.3.29
                  
                  
                    vars:
                  
                  
                      ansible_connection:ansible.netcommon.network_cli
                  
                  
                      ansible_network_os:community.routeros.routeros
                  
                  
                      ansible_user:admin
                  
                  
                      ansible_ssh_pass:password
                  
                  
                  
                  
                  
                  playbook, взят отсюда  как и hosts:
                  
                  
                  ---
                  
                  
                  - name: RouterOS test with network_cli connection
                  
                  
                    hosts: routers
                  
                  
                    gather_facts: false
                  
                  
                    tasks:
                  
                  
                      - name: Run a command
                  
                  
                        community.routeros.command:
                  
                  
                          commands:
                  
                  
                            - /system resource print
                  
                  
                        register: system_resource_print
                  
                  
                      - name: Print its output
                  
                  
                        ansible.builtin.debug:
                  
                  
                          var: system_resource_print.stdout_lin
                  
                  
                  
                  
                  
                  Ошибка такая:
                  
                  
                  
                  
                  
                  [WARNING]: Unhandled error in Python interpreter discovery for host 192.168.3.29: kerberos: authGSSClientInit() failed:
                  
                  
                  (('Unspecified GSS failure.  Minor code may provide more information', 851968), ("Can't find client principal admin@domain.local in
                  
                  
                  cache collection", -1765328243))
                  
                  
                  fatal: [192.168.3.29]: UNREACHABLE! => {"changed": false, "msg": "kerberos: authGSSClientInit() failed: (('Unspecified GSS failure.  Minor code may provide more information', 851968), (\"Can't find client principal admin@domain.local in cache collection\", -1765328243))", "unreachable": true}
                  
                  
                
Пробел после : должен быть в vars
вместо vars: ansible_connection:ansible.netcommon.network_cli ansible_network_os:community.routeros.routeros ansible_user:admin ansible_ssh_pass:password должно быть vars: ansible_connection: ansible.netcommon.network_cli ansible_network_os: community.routeros.routeros ansible_user: admin ansible_ssh_pass: password
всё так же... почему-то ломится через kerberos, а не через SSH. вот вывод. https://pastebin.com/rqZS3RVC
разобрался, надо было использовать ansible_network_cli_ssh_type: libssh а не по умолчанию, ansible_network_cli_ssh_type: paramiko https://www.ansible.com/blog/new-libssh-connection-plugin-for-ansible-network
Обсуждают сегодня