From 098d13584518ed03300a1dd9cc5a051e4be0713a Mon Sep 17 00:00:00 2001 From: Zhuoyun Wei Date: Mon, 16 May 2016 17:26:21 +0800 Subject: [PATCH] Revert "Remove exisiting swarm-{agent,manager}.service" This reverts commit 9eddc5e55778ee6ec8dd884a7e49f7b30a79352b. Reference: #2 --- playbooks/roles/swarm-manage/templates/swarm-agent.service.j2 | 1 - playbooks/roles/swarm-manage/templates/swarm-manager.service.j2 | 1 - 2 files changed, 2 deletions(-) diff --git a/playbooks/roles/swarm-manage/templates/swarm-agent.service.j2 b/playbooks/roles/swarm-manage/templates/swarm-agent.service.j2 index 8f32ff6..8f6659a 100644 --- a/playbooks/roles/swarm-manage/templates/swarm-agent.service.j2 +++ b/playbooks/roles/swarm-manage/templates/swarm-agent.service.j2 @@ -3,7 +3,6 @@ Description=docker swarm agent After=docker.service [Service] -ExecStartPre=/usr/bin/docker rm -f %n ExecStart=/usr/bin/docker run \ --name %n \ --rm \ diff --git a/playbooks/roles/swarm-manage/templates/swarm-manager.service.j2 b/playbooks/roles/swarm-manage/templates/swarm-manager.service.j2 index e4aab44..4cc98ac 100644 --- a/playbooks/roles/swarm-manage/templates/swarm-manager.service.j2 +++ b/playbooks/roles/swarm-manage/templates/swarm-manager.service.j2 @@ -3,7 +3,6 @@ Description=docker swarm manager After=docker.service [Service] -ExecStartPre=/usr/bin/docker rm -f %n ExecStart=/usr/bin/docker run \ --name %n \ --rm \