def task_enable_docker_plugin(distribution):
 if is_systemd_distribution(distribution):
  return sequence([run_from_args(['systemctl', 'enable', 'flocker-docker-plugin']), run_from_args(['systemctl', START, 'flocker-docker-plugin']), run_from_args(['systemctl', START, 'docker'])])
 elif is_ubuntu(distribution):
  return sequence([run_from_args(['service', 'flocker-docker-plugin', 'restart']), run_from_args(['service', 'docker', 'restart'])])
 else:
  raise DistributionNotSupported(distribution=distribution)

def task_enable_docker_plugin ( distribution ) : if is_systemd_distribution ( distribution ) : return sequence ( [ run_from_args ( [ 'systemctl' , 'enable' , 'flocker-docker-plugin' ] ) , run_from_args ( [ 'systemctl' , START , 'flocker-docker-plugin' ] ) , run_from_args ( [ 'systemctl' , START , 'docker' ] ) ] ) elif is_ubuntu ( distribution ) : return sequence ( [ run_from_args ( [ 'service' , 'flocker-docker-plugin' , 'restart' ] ) , run_from_args ( [ 'service' , 'docker' , 'restart' ] ) ] ) else : raise DistributionNotSupported ( distribution = distribution )
enable the flocker docker plugin .