On Wed, 24 Oct 2018 at 18:22, Robinhood Junior
<
robinhoo...@gmail.com> wrote:
>
> How can we change the default http port ansible uses for a host? Instead of default port 80 I'd like to change it to a custom one, say port 70.
> `#hosts
> host1 ansible_host=44 # changes the ssh port to 44
> # anything similar to this that changes the http port?`
You're mixing a few things up here.
1. Ansible doesn't have anything to do with 'http'. The only thing it
uses is SSH, which runs op port 22 by default.
2. If you want to run this on a different port, use the 'ansible_port' option.
3. 'ansible_host' configures the *host* that ansible connects to.
Please read
https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html#working-with-inventory
Dick