Hi Dick Visser,
Am fine..thanks for asking and how about
I have launched instance(CentOs) in AWS then i have installed PHPIPAM on
that successfully and i have created subnets, customers, etc. Now want to
see the information of subnets by using Ansilble scripts.
I have installed Ansible in the same machine and executed the below script.
getting some authentication error
name: testing
hosts: 127.0.0.1
tasks:
- name: Login to phpIPAM
uri:
validate_certs: false
url: "http://localhost/index.php?page=login"
method: POST
body_format: json
user: "Admin"
password: "admin123"
force_basic_auth: yes
register: ipam_login
Error:
[image: image.png]
Through Ansible am not connecting PHPIPAM so once its connect then i can
use below script to check the subnet information.
- name: Get subnet information (DNS, gateway, netmask etc.)
uri:
url: "{{ phpipam_url }}/subnets/7/"
method: GET
headers:
token: "{{ ipam_login.json.data.token }}"
status_code: 200
register: subnet_info
Kindly help me out from this issue.
Regards,
Naresh K
On Tue, Jun 2, 2020 at 1:57 AM Dick Visser <[email protected]> wrote:
> Ansible is an automation tool.
> It can automate whatever you are currently doing manually.
> So the question is: how are you currently "retrieving the
> subnet/ipaddress details"?
>
> On Mon, 1 Jun 2020 at 10:30, Naresh Kasula <[email protected]>
> wrote:
> >
> > Hi Team,
> >
> > I have installed PHPIPAM on linux centos server now want retrieve the
> subnet/ipaddress details using Ansible scripts.
> >
> > Can someone please guide to get the details.
> >
> > PHPIPAM is basically IPAddress management tool.
> >
> > Regards,
> > Naresh K
> >
> > --
> > 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/f384808e-3dd3-4f40-8e0b-c7908f189278%40googlegroups.com
> .
>
>
>
> --
> Dick Visser
> Trust & Identity Service Operations Manager
> GÉANT
>
> --
> 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/CAL8fbwOaGqrCdfM7FLg9UESZxOe1rZQurQdX0WcXcx%2BQP0NbMg%40mail.gmail.com
> .
>
--
K.Naresh
Mob No:9916045741
--
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/CAO532ODrYVVJ7Jo%2B%2BJ-fw_yjT7o28ojn2%2B6W8zs9yRrSXtopmQ%40mail.gmail.com.