Skip to content
This repository was archived by the owner on Apr 17, 2019. It is now read-only.

Commit c4221d4

Browse files
authored
Merge pull request #1211 from aabed/ubuntu-patch
resolves the "this module requires key=value”
2 parents 64e721a + de47308 commit c4221d4

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
---
22
- name: Ubuntu | Configure Docker to use Flannel network
3-
lineinfile: dest="{{ docker_config_dir }}/docker" state=present
4-
line="{{ item.line }}"
5-
regexp="{{ item.regexp }}"
3+
lineinfile:
4+
dest: "{{ docker_config_dir }}/docker"
5+
state: present
6+
line: "{{ item.line }}"
7+
regexp: "{{ item.regexp }}"
68
with_items:
79
- { line: '. /run/flannel/subnet.env', regexp: '. /run/flannel/subnet.env' }
8-
- { line: 'DOCKER_OPTS="--bip ${FLANNEL_SUBNET} --mtu ${FLANNEL_MTU}"',
9-
regexp: '^DOCKER_OPTS=' }
10+
- { line: 'DOCKER_OPTS="--bip ${FLANNEL_SUBNET} --mtu ${FLANNEL_MTU}"',regexp: '^DOCKER_OPTS=' }
1011
when: ansible_distribution_major_version|int < 15
1112
notify:
1213
- restart flannel

0 commit comments

Comments
 (0)