On Wed, 24 Oct 2018 at 18:22, Robinhood Junior <[email protected]> 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 -- 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwM55S_zeMJ2y2ESuxz5K5g6XYe38EM%3D%3DeonORmMj6seDw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
