feat(bootstrap): check for distribution

Check for distribution when running distro-specific actions.

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2022-03-13 01:33:20 +01:00
parent f5b7777235
commit 3f8215fcc0
No known key found for this signature in database
GPG key ID: 332171FADF1DB90B

View file

@ -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