Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ip forwarding getting disabled after swapiness was set #13

Open
adespain opened this issue Feb 21, 2018 · 0 comments
Open

ip forwarding getting disabled after swapiness was set #13

adespain opened this issue Feb 21, 2018 · 0 comments

Comments

@adespain
Copy link

It may just be my machine, but I noticed that ip forwarding was getting set to 0 after swapiness was set to 0 in the playbook. Since forwarding was already set to 0 in the config file, the task that sets swapiness was reloading the /etc/sysctl.conf file so I added this line to keep forwarding enabled:

  • { name: 'net.ipv4.ip_forward', value: '1' }

I believe forwarding is required for docker to work.

My ansible version is 2.4.3.0 and i was running ubuntu 16.04 with the latest patches...

adding a new value to the sysctl.conf file must reload the file?

I also noticed that installing docker turns forwarding on but not permanently via the sysctl.conf file (a reboot will turn forwarding back on when docker starts probably)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant