From 3f8215fcc0c96206557e1a3f50d518c03f155960 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Sun, 13 Mar 2022 01:33:20 +0100 Subject: [PATCH] feat(bootstrap): check for distribution Check for distribution when running distro-specific actions. Signed-off-by: Matej Focko --- playbooks/{fedora.yml => bootstrap.yml} | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) rename playbooks/{fedora.yml => bootstrap.yml} (76%) diff --git a/playbooks/fedora.yml b/playbooks/bootstrap.yml similarity index 76% rename from playbooks/fedora.yml rename to playbooks/bootstrap.yml index 8ba4a99..8d66340 100644 --- a/playbooks/fedora.yml +++ b/playbooks/bootstrap.yml @@ -1,6 +1,7 @@ --- -- name: Fedora bootstrap +- name: Bootstrap installation hosts: all + gather_facts: yes roles: - role: fedora become: yes @@ -8,6 +9,7 @@ vars: # set to "local" or "remote" source: "local" + when: ansible_distribution == "Fedora" - flatpaks - ssh - shell