From 038a0591c92be64305c3fbe37592346cf04166e4 Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Sun, 20 Aug 2023 15:44:55 +0200 Subject: [PATCH] copr: install python when birthday, regardless of gathering facts --- playbooks/groups/copr-pulp.yml | 6 ------ tasks/aws_cloud.yml | 4 +++- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/playbooks/groups/copr-pulp.yml b/playbooks/groups/copr-pulp.yml index c56f003e55..d1d97e9f7f 100644 --- a/playbooks/groups/copr-pulp.yml +++ b/playbooks/groups/copr-pulp.yml @@ -14,12 +14,6 @@ # - import_tasks: "{{ tasks_path }}/persistent_cloud.yml" # when: datacenter != 'aws' - # TODO Remove this in favor of aws_cloud.yml - - name: install python3 and dnf stuff - raw: sudo dnf -y install python3-dnf python3-libselinux python3 - when: - - birthday is defined - - import_tasks: "{{ tasks_path }}/aws_cloud.yml" when: datacenter == 'aws' diff --git a/tasks/aws_cloud.yml b/tasks/aws_cloud.yml index 29e5f678b4..719bf5eca8 100644 --- a/tasks/aws_cloud.yml +++ b/tasks/aws_cloud.yml @@ -70,7 +70,9 @@ raw: sudo dnf -y install python3-dnf python3-libselinux python3 when: - birthday is defined - - facts is failed + # For copr-pulp-instance it doesn't fail even though python3 package + # is not installed + # - facts is failed # - name: Include SSH config # import_role: name=basessh