From 87c9a871b938c7e9661c5992125f3bb5f94b8572 Mon Sep 17 00:00:00 2001 From: Markus Teufelberger Date: Sat, 12 Jan 2019 15:06:01 +0100 Subject: [PATCH] bootstrap-os: use the systemd module to stop and mask locksmithd --- roles/bootstrap-os/tasks/bootstrap-coreos.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/bootstrap-os/tasks/bootstrap-coreos.yml b/roles/bootstrap-os/tasks/bootstrap-coreos.yml index 0cd318d6e..1bd861ca7 100644 --- a/roles/bootstrap-os/tasks/bootstrap-coreos.yml +++ b/roles/bootstrap-os/tasks/bootstrap-coreos.yml @@ -46,6 +46,9 @@ PATH: "{{ ansible_env.PATH }}:{{ bin_dir }}" - name: Bootstrap | Disable auto-upgrade - shell: "systemctl stop locksmithd.service && systemctl mask --now locksmithd.service" + systemd: + name: locksmithd.service + masked: true + state: stopped when: - not coreos_auto_upgrade