Skip to content

Commit

Permalink
Update linux-desktop.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
never147 authored Apr 6, 2024
1 parent a82847b commit 4bbc4f3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions playbooks/linux-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@
pre_tasks:
- setup:
- set_fact:
os_distro: "{{ ansible_facts['distribution'] }}"
os_distro: "{{ ansible_distribution }}"
tags: always
- set_fact:
os_distro: "ubuntu"
tags: always
when: os_distro == "Linux Mint"
- set_fact:
os_codename: "{{ os_codenames[ansible_facts['distribution_release']] }}"
when: ansible_facts['distribution_release'] in os_codenames
os_codename: "{{
os_codenames[ansible_distribution_release]
|default(ansible_distribution_release)
}}"
tags: always
- debug:
msg: "{{ os_codename }}"
Expand Down

0 comments on commit 4bbc4f3

Please sign in to comment.