From 9db4b949f2d2a0f87e4dd6ab5c1a5b59aed005f5 Mon Sep 17 00:00:00 2001
From: marcosfsch <44682313+marcosfsch@users.noreply.github.com>
Date: Wed, 23 Dec 2020 05:22:25 -0300
Subject: [PATCH] Fedora CoreOS fixes (#7010)

* Fedora CoreOS: Fix for ethtool pre-installed

Fix error in rpm-ostree when ethtool is already insatlled (FCOS >= 32.20201104.3.0)

* Fedora CoreOS: Fix connection lost

Fedora CoreOS: Ignore connection lost due to reboot and continues the playbook
---
 roles/bootstrap-os/tasks/bootstrap-fedora-coreos.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/roles/bootstrap-os/tasks/bootstrap-fedora-coreos.yml b/roles/bootstrap-os/tasks/bootstrap-fedora-coreos.yml
index 0d70a3398..e999d0506 100644
--- a/roles/bootstrap-os/tasks/bootstrap-fedora-coreos.yml
+++ b/roles/bootstrap-os/tasks/bootstrap-fedora-coreos.yml
@@ -29,7 +29,7 @@
   when: need_bootstrap.rc != 0
 
 - name: Install required packages on fedora coreos
-  raw: "export http_proxy={{ http_proxy | default('') }};rpm-ostree install {{ fedora_coreos_packages|join(' ') }}"
+  raw: "export http_proxy={{ http_proxy | default('') }};rpm-ostree install --allow-inactive {{ fedora_coreos_packages|join(' ') }}"
   become: true
   when: need_bootstrap.rc != 0
 
@@ -44,6 +44,7 @@
   raw: "nohup bash -c 'sleep 5s && shutdown -r now'"
   become: true
   ignore_errors: yes
+  ignore_unreachable: yes
   when: need_bootstrap.rc != 0
 
 - name: Wait for the reboot to complete
-- 
GitLab