# How to replace the port number

**URL:** <https://forum.ansible.com/t/how-to-replace-the-port-number/28733>\
**Category:** AWX Project\
**Created:** [October 5, 2018, 7:24pm UTC](https://forum.ansible.com/t/how-to-replace-the-port-number/28733 "2018-10-05T19:24:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![krishnachaitanya\_ine](https://avatars.discourse-cdn.com/v4/letter/k/b38774/32.png) [@krishnachaitanya\_ine](https://forum.ansible.com/u/krishnachaitanya_ine)\
**Post date:** [October 5, 2018, 7:24pm UTC](https://forum.ansible.com/t/how-to-replace-the-port-number/28733/1 "2018-10-05T19:24:43Z")

</div>

Hi guys,  
I have a config file, follow below. But how to modify the port number 8888 to 9999 using the Ansible playbook.

Port: 8888

Thanks,  
Krishna Inedi.

---

<div class="post-metadata">

**Author:** ![rpetrell](https://avatars.discourse-cdn.com/v4/letter/r/b4bc9f/32.png) [@rpetrell](https://forum.ansible.com/u/rpetrell)\
**Post date:** [October 5, 2018, 7:34pm UTC](https://forum.ansible.com/t/how-to-replace-the-port-number/28733/2 "2018-10-05T19:34:14Z")

</div>

Krishna,

This mailing list is for the AWX project. If you need assistance with writing Ansible playbooks, check out the Ansible mailing list ([https://groups.google.com/forum/#!forum/ansible-project](https://groups.google.com/forum/#!forum/ansible-project)), or the #ansible IRC room on freenode.

---

<div class="post-metadata">

**Author:** ![krishnachaitanya\_ine](https://avatars.discourse-cdn.com/v4/letter/k/b38774/32.png) [@krishnachaitanya\_ine](https://forum.ansible.com/u/krishnachaitanya_ine)\
**Post date:** [October 5, 2018, 7:38pm UTC](https://forum.ansible.com/t/how-to-replace-the-port-number/28733/3 "2018-10-05T19:38:12Z")

</div>

Sure thanks.
