Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion playbooks/roles/cronjob/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- name: backup old crontab
shell: crontab -l > ~/backup.cron
shell: crontab -l > ~/backup.cron 2> /dev/null || true

- name: copy image-clean script
copy:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ ExecStart=/usr/bin/docker run \
--addr={{ node_ip }}:{{ docker_port }} \
etcd://{{ node_ip }}:{{ etcd_client_port }}/lain/swarm
ExecStop=/bin/bash -c '/usr/bin/docker stop %n || true'
Restart=on-failure

[Install]
WantedBy=multi-user.target