From 634d87490e1ac39a12071ced356c06807e639608 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Mon, 26 Oct 2020 09:45:50 +0100 Subject: [PATCH] Exclude service commands in Github Action CI --- handlers/main.yml | 1 + tasks/install.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/handlers/main.yml b/handlers/main.yml index 5d90a93..8c0eb7d 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -7,6 +7,7 @@ when: - sshd_allow_reload|bool - ansible_virtualization_type|default(None) != 'docker' + - ansible_virtualization_type|default(None) != 'VirtualPC' # for Github Actions - ansible_connection != 'chroot' - ansible_os_family != 'AIX' listen: reload_sshd diff --git a/tasks/install.yml b/tasks/install.yml index 29bd60b..9ee5b8a 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -68,6 +68,7 @@ when: - sshd_manage_service|bool - ansible_virtualization_type|default(None) != 'docker' + - ansible_virtualization_type|default(None) != 'VirtualPC' # for Github Actions - ansible_connection != 'chroot' # Due to ansible bug 21026, cannot use service module on RHEL 7