templates_cloud-init--app-servers.j2.md
The source files for this tutorial can be downloaded from its GitHub repository, or cloned into your current working directory using the command git clone https://github.com/ionos-cloud/module-ansible.git
before changing into the module-ansible/docs/tutorials/06__introducing_the_nat_gateway_and_network_load_balancer
sub-directory.
#!/bin/bash
dd if=/dev/zero of=/swapfile bs=1M count=2048
chmod 0600 /swapfile
mkswap /swapfile
swapon /swapfile
echo '/swapfile none swap sw 0 0' >> /etc/fstab
ip route add default via {{ nat_gateway.ip }}
Last updated