Skip to content

Instantly share code, notes, and snippets.

@jairojunior
Created November 20, 2018 13:03
Show Gist options
  • Save jairojunior/c4ae962e84532a94faf37f90fc1125f6 to your computer and use it in GitHub Desktop.
Save jairojunior/c4ae962e84532a94faf37f90fc1125f6 to your computer and use it in GitHub Desktop.
Change docker bridge CIDR
---
- hosts: nodes
tasks:
- name: Fix bridge
lineinfile:
path: /etc/sysconfig/docker
regexp: '^OPTIONS='
line: "OPTIONS='--selinux-enabled --log-driver=journald --bip 10.17.0.1/16'"
- name: Stop OCP
service:
name: atomic-openshift-node
state: stopped
- name: Restart Docker
service:
name: docker
state: restarted
- name: Start OCP
service:
name: atomic-openshift-node
state: started
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment