# How to login to webpage using ansible ?

**URL:** <https://forum.ansible.com/t/how-to-login-to-webpage-using-ansible/31347>\
**Category:** Ansible Project\
**Created:** [September 24, 2019, 7:59am UTC](https://forum.ansible.com/t/how-to-login-to-webpage-using-ansible/31347 "2019-09-24T07:59:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kasturi\_vivek](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@kasturi\_vivek](https://forum.ansible.com/u/kasturi_vivek)\
**Post date:** [September 24, 2019, 7:59am UTC](https://forum.ansible.com/t/how-to-login-to-webpage-using-ansible/31347/1 "2019-09-24T07:59:15Z")

</div>

How to login to any webpage(having to log in ID and Password) and need to attach the file in the page(website page0 by using ansible. could you please help me with this

```auto
- name: Check url
  uri:
    url: https:www.facebook.com

- name: login check
  uri:
    url:https:www.facebook.com
    method: GET
    user: Admin
    password: admin
    force_basic_auth: yes
    status_code: 200

```

```auto
Here I used facebook as example could you please help me on this

```
