summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiku Voipio <riku.voipio@linaro.org>2017-11-27 15:45:15 +0200
committerBenjamin Copeland <ben.copeland@linaro.org>2017-12-01 15:32:44 +0000
commit84aa7e8d094aaaab75c74d00125935f94e8a7acd (patch)
treed5c0678f4b521a8866a449e2b3f0470e1eae626c
parentfa4b4234f476bbd6cff9e54dbde131e901fd15fd (diff)
systemd-container: fix running container lockfile name
The lock file created by starting was incorrect. This caused ansible play to always try to start the container even if it was already runnnig. Change-Id: I3cf70cafbfe947fb1cf1af7167736e103f98c646 Reviewed-on: https://review.linaro.org/22733 Reviewed-by: Benjamin Copeland <ben.copeland@linaro.org>
-rw-r--r--roles/systemd-container/tasks/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/systemd-container/tasks/main.yml b/roles/systemd-container/tasks/main.yml
index f304b544..31aa0ec5 100644
--- a/roles/systemd-container/tasks/main.yml
+++ b/roles/systemd-container/tasks/main.yml
@@ -32,7 +32,7 @@
- name: Start {{container_name}}
command: machinectl start {{container_name}}
args:
- creates: /var/lib/machines/.#{{container_name}}.lock
+ creates: /var/lib/machines/.#{{container_name}}.lck
- name: Start {{container_name}} on boot
command: machinectl enable {{container_name}}