The output of /proc/sys/kernel/core_pattern is single-quoted with the
default core pattern.
Change-Id: I7da0b590afdf247cbac3b0944dfa42d9258bdbcf
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
argv: ['cat', '/proc/sys/kernel/core_pattern']
register: current_core_pattern
- name: 'Update current core pattern'
- when: current_core_pattern.stdout|trim != lxd_core_pattern
+ when: current_core_pattern.stdout|trim != "'{{lxd_core_pattern}}'"
ansible.builtin.command:
argv: ['sysctl', '-w', "kernel.core_pattern='{{lxd_core_pattern}}'"]
-
- name: Install LXD
ansible.builtin.apt:
name: lxd