Skip to content

Instantly share code, notes, and snippets.

@rafaeltuelho
Created December 19, 2018 22:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafaeltuelho/1e76b22def119273bd79d7613614761e to your computer and use it in GitHub Desktop.
Save rafaeltuelho/1e76b22def119273bd79d7613614761e to your computer and use it in GitHub Desktop.
---
- name: Append Docker OPTION
hosts: localhost
tasks:
- name: apply regex
replace:
backup: yes
dest: /etc/sysconfig/docker
regexp: '^(OPTIONS.*)(\S)$'
replace: '\1 --authorization-plugin=docker-novolume-plugin\2'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment