Basic Ansible

66 views
Skip to first unread message

shubham suroshe

unread,
Mar 30, 2021, 2:43:59 AM3/30/21
to Ansible Project
Hello Team,

Does ansible.cfg and /etc/ansible directory created automatically when i install ansible ?

I have installed ansible in virtaul environment. I am not able to locate ansible.cfg or host file.
what i can see in my ansible-config file
config file = None

Thanks
Shubham 

Tej Singh Rana

unread,
Mar 30, 2021, 2:52:34 AM3/30/21
to ansible...@googlegroups.com
"Does ansible.cfg and /etc/ansible directory created automatically when i install ansible ?"
Yes

--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/ee66c5ef-d5d1-4d25-8e6a-63891a975fabn%40googlegroups.com.


--
---------------------
Tej Singh Rana

Dick Visser

unread,
Mar 30, 2021, 2:56:52 AM3/30/21
to ansible...@googlegroups.com
On Tue, 30 Mar 2021 at 08:44, shubham suroshe <shubham....@gmail.com> wrote:
Hello Team,

Does ansible.cfg and /etc/ansible directory created automatically when i install ansible ?

Not if you use a python virtualenv.

I have installed ansible in virtaul environment. I am not able to locate ansible.cfg or host file.
what i can see in my ansible-config file
config file = None

You need to create those files if you need them. 



Thanks
Shubham 

--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/ee66c5ef-d5d1-4d25-8e6a-63891a975fabn%40googlegroups.com.
--
Sent from a mobile device - please excuse the brevity, spelling and punctuation.

Brian Coca

unread,
Mar 30, 2021, 12:59:00 PM3/30/21
to Ansible Project
DEPENDS

If you install via OS package manager, very likely, other installation
methods, probably not.


--
----------
Brian Coca

shubham suroshe

unread,
Mar 30, 2021, 1:18:00 PM3/30/21
to ansible...@googlegroups.com
Thank You, guys.
I have installed ansible using pip.
Tried with python virtual env and without virtual env in both the cases /ansible/hosts or ansible.cfg files not created automatically.

Thanks
Shubham

--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/KhGcT_GcVjU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CACVha7cEMUjzgROKGnACZ4MoBxW7VO4_%2B8irU5DpA01%3DjiLy%2BA%40mail.gmail.com.

Dick Visser

unread,
Mar 30, 2021, 1:26:42 PM3/30/21
to ansible...@googlegroups.com
Keep in mind that those files are defaults and are not needed for ansible to work. 
It is very common to use different files in locations that are more easily managed. 


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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAM-LZi7zhksZY2VDC5HT3vA3Dd%3DcW17r36NgdZvqNwd-%3DFH4Pw%40mail.gmail.com.

shubham suroshe

unread,
Mar 30, 2021, 1:41:38 PM3/30/21
to ansible...@googlegroups.com
Yep. 

I want to create a small project in Ansible. Could you suggest any?

My experience:
I am good in network automation and working on compliance monitoring and remediation of network devices using Ansible and AWX tower.
Developed Ansible dynamic inventory script and ansible module.

Dick Visser

unread,
Mar 30, 2021, 2:12:10 PM3/30/21
to ansible...@googlegroups.com
On Tue, 30 Mar 2021 at 19:41, shubham suroshe
<shubham....@gmail.com> wrote:
>
> Yep.
>
> I want to create a small project in Ansible. Could you suggest any?
>
> My experience:
> I am good in network automation and working on compliance monitoring and remediation of network devices using Ansible and AWX tower.
> Developed Ansible dynamic inventory script and ansible module.

These statements seem to contradict each other. On the one hand you
are not aware of the basic configuration of ansible, yet you also
claim to have developed a dynamic inventory script and an ansible
module.
And then again you want input on a 'small project in Ansible'.
I'm not sure I understand.
If you're looking from inspiration, that depends entirely on what
tasks you want to automate?
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAM-LZi5d1CkA2R864RJTwjhojMPuGASNxrxuq5vyM8Uyd8bOxQ%40mail.gmail.com.



--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

shubham suroshe

unread,
Mar 30, 2021, 8:38:25 PM3/30/21
to ansible...@googlegroups.com
Since we moved to the tower and I spend more time on ansible network modules, Now I started revising basic ansible and using it in my machine.

Compliance monitoring of network devices is monotonous work for me because I have done it for Avi, F5, Aruba and cisco CSP that's why I am looking for something else where i can use my development skills.

Regards,
Shubham S
9096373895

   

Reply all
Reply to author
Forward
0 new messages