[ansible-project] Understanding relationship between -K & become vs ansible_ssh_user & ansible_ssh_pass

2021-09-07 Thread Michelle Dupuis
I am creating a simple playbook to add the current user's public key onto the remote host. My playbook fails with error "Failed to connect to the host via ssh: Permission denied". I am running the playbook as non-root, and I can succesfully ssh to the remote host as root. I run the following

[ansible-project] Understanding relationship between -K & become vs ansible_ssh_user & ansible_ssh_pass

2021-09-07 Thread Michelle Dupuis
I am creating a simple playbook to add the current user's public key onto the remote host. My playbook fails with error "Failed to connect to the host via ssh: Permission denied". I am running the playbook as non-root, and I can successfully ssh to the remote host as root. I run the

Re: [ansible-project] [WARNING]: Failed to load inventory plugin, skipping vmware_vm_inventory

2021-09-07 Thread Sofian El-Kadouri
Sorry for the delay, The problem with your solution is that I have too much information and I would like to have only the machines of a TAG. I tried this: [image: image.png] But it doesn't work my inventory is empty. Regards, Soufiane Le mer. 21 juil. 2021 à 12:05, Abhijeet Kasurde a écrit : >

Re: [ansible-project] [WARNING]: Failed to load inventory plugin, skipping vmware_vm_inventory

2021-09-07 Thread Abhijeet Kasurde
Could you please elaborate on " I would like to have only the machines of a TAG." ? On Tue, Sep 7, 2021 at 3:18 PM Sofian El-Kadouri wrote: > Sorry for the delay, > The problem with your solution is that I have too much information and I > would like to have only the machines of a TAG. > I

Re: [ansible-project] [WARNING]: Failed to load inventory plugin, skipping vmware_vm_inventory

2021-09-07 Thread Sofian El-Kadouri
My goal would be to have several inventories for example : inventory_prod.yml with in it the machines that are TAG "PROD" an inventory_test.yml with the machines that are TAG "TEST" Because currently in one file there are really all the machines and way too much information that is useless to me.