template:
 src : file.txt

Inside this file.txt......
 The default IPv4 address of {{ ansible_facts.fqdn }}
 is {{ ansible_facts.default_ipv4.address }}

dest : file.csv

Some facts example there are lots of facts related to that server you have
to fetch or serch in docs

On Mon, Apr 26, 2021, 3:30 PM Naveen Konduru <[email protected]> wrote:

> do u have any sample code  ...if u have pls share with me
>
> On Monday, April 26, 2021 at 3:28:21 PM UTC+5:30 [email protected]
> wrote:
>
>> 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/781d9d2e-6899-4057-9732-87320e54c53bn%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/781d9d2e-6899-4057-9732-87320e54c53bn%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%3DuV7e9WhVJjK%2BM5rBhrUQdu9%2BOhj81yx_UF1S2qLuKwtkA%40mail.gmail.com.

Reply via email to