You can use jinja templates for getting the facts of the server and use template modules for creating your file.
On Mon, Apr 26, 2021, 2:54 PM Naveen Konduru <[email protected]> wrote: > Hello Team , > I have oen requirement on Ansible with Hp ILO server.. > > I am new to ansible.Need help from you people. > Requirement is > Have to connect Hp ilo serverr using SSH and get SWId's details and > the out out i have to display in csv file.. can any implementation pls do > let me know. > Naveen > > On Friday, April 23, 2021 at 9:05:14 PM UTC+5:30 [email protected] wrote: > >> Please someone help me. I do not understand why i get this error. I can >> ssh from my control node to this host and from the host to my control node. >> But ansible test show this results. >> >> 192.168.154.163 | UNREACHABLE! => { >> "changed": false, >> "msg": "Failed to connect to the host via ssh: [email protected]: >> Permission denied (publickey,password).", >> "unreachable": true >> >> this is my inventory: >> >> 192.168.154.163 cyber01_ssh_pass="pass" cyber01_ssh_user=user >> >> Thank you >> >> -- > 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/35390e98-0044-4ad8-8d91-a389e89604fdn%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/35390e98-0044-4ad8-8d91-a389e89604fdn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAGgS%3DuVAESu%3Dr-VWzKtZz-YHUYQ4e%2Burf1dghGVmjoe_KAwdYQ%40mail.gmail.com.
