From af86b88fd6629fbb0132ad9236f17b62811c3d80 Mon Sep 17 00:00:00 2001 From: Samuel Presa Toledo Date: Tue, 8 Nov 2022 12:17:44 -0500 Subject: [PATCH] Bootstrap failing for ISO based on CentOS During the bootstrap execution is occurring the failure of it in the bringup-essential-services playbook. The commit responsible for that failure is this: https://review.opendev.org/c/starlingx/ansible-playbooks/+/861222 The fix for it is adding a OS check before run the command inside that block. Test plan: PASS - Install and bootsrap using an ISO based on CentOS PASS - Install and bootsrap using an ISO based on Debian Closes-bug: 1995970 Signed-off-by: Samuel Presa Toledo Change-Id: Ie492946c95f27ce98a195b4cdb0c00e6df2e7665 --- .../roles/bootstrap/bringup-essential-services/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbookconfig/src/playbooks/roles/bootstrap/bringup-essential-services/tasks/main.yml b/playbookconfig/src/playbooks/roles/bootstrap/bringup-essential-services/tasks/main.yml index ab6f039b1..b921d3a65 100644 --- a/playbookconfig/src/playbooks/roles/bootstrap/bringup-essential-services/tasks/main.yml +++ b/playbookconfig/src/playbooks/roles/bootstrap/bringup-essential-services/tasks/main.yml @@ -305,5 +305,5 @@ src: "k8s-coredump-conf.json.j2" dest: /etc/k8s-coredump-conf.json mode: 0700 - + when: os_release == 'debian' when: (not replayed) or (restart_services)