Skip to content
Linux Server Support
  • Home
  • HowTo
    • Cpanel
    • Mail
    • MySQL
    • Nginx
    • Apache
    • CloudLinux
    • Ubuntu
    • WordPress
    • Magento
  • Tools
  • Hire Me

DevOps

Ansible multiple hosts behind NAT port forwarding

July 21, 2024October 30, 2022 by Yujin Boby

I have 2 servers behind NAT, so they share the same IP address, SSH service runs on two different ports. Here is my ansible inventory file. When I run the ansible command against the inventory file, it only gets executed on one of the servers. Solution The problem is that all the hosts have the … Read more

Categories DevOps Tags ansible Leave a comment
© 2026 Linux Server Support • Built with GeneratePress