ok getting the hang of it - but i have added the ssh keys from master to
client
but when i run ansible -m ping all

i get the following
root@ubuntu2004:/home/ubuntu# sudo ansible -m ping linux
     192.168.1.115 | UNREACHABLE! => {
    "changed": false,
    "msg": "Failed to connect to the host via ssh: [email protected]:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).",
    "unreachable": true
}
root@ubuntu2004:/home/ubuntu#


On Tue, 16 Mar 2021 at 15:50, Mohamed Rahiman <[email protected]> wrote:

> thanks Antony
>
> I think these docs are a good start , created the ssh key pair as i was
> getting a permission denied
> trying it out this first command below
> what is -m vyos.vyos.vyos_facts -e  and ansible_network_os=vyos.vyos.vyos
>
> ansible all -i vyos.example.net, -c ansible.netcommon.network_cli -u 
> my_vyos_user -k -m vyos.vyos.vyos_facts -e ansible_network_os=vyos.vyos.vyos
>
>
> On Tue, 16 Mar 2021 at 11:13, Antony Stone <
> [email protected]> wrote:
>
>> On Tuesday 16 March 2021 at 12:06:35, Mohamed Rahiman wrote:
>>
>> > ok guys did a bit of rtfm and my format for the hosts file was in no
>> format
>> > so i did the yaml format with colons and begnnining with all:
>> > however no i get this
>>
>> Instead of creating your own playbooks in a format you're not familiar
>> with,
>> have you tried starting from a worked-example tutorial which guides you
>> through creating simple playbooks and getting used to ansible commands
>> and
>> YAML formatting?
>>
>> For example:
>>
>>
>> https://docs.ansible.com/ansible/latest/network/getting_started/first_playbook.html
>>
>>
>> https://docs.ansible.com/ansible/latest/user_guide/intro_getting_started.html
>>
>> https://www.ansible.com/resources/get-started
>>
>>
>> Antony.
>>
>> --
>> "640 kilobytes (of RAM) should be enough for anybody."
>>
>>  - Bill Gates
>>
>>                                                    Please reply to the
>> list;
>>                                                          please *don't*
>> CC me.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAMWqvZF%3D%3DLYw-9dhpbfUwMOPhL2LYj4A-qxuQy4Sxat2D6FU%2Bw%40mail.gmail.com.

Reply via email to