aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/ppa/tasks/main.yml
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-08-15 21:55:53 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-08-15 21:55:53 +0200
commita47e4ddc43849f36d58a1b48e0f7a71157a82ae1 (patch)
treedabae680c0f48b9ff1933375f9782824d949b92d /roles/ppa/tasks/main.yml
parentapt_ppa -> ppa (diff)
downloadinfra-ansible-a47e4ddc43849f36d58a1b48e0f7a71157a82ae1.tar.gz
infra-ansible-a47e4ddc43849f36d58a1b48e0f7a71157a82ae1.zip
use ansible_distribution_release as default for APT setup
Diffstat (limited to '')
-rw-r--r--roles/ppa/tasks/main.yml6
1 files changed, 5 insertions, 1 deletions
diff --git a/roles/ppa/tasks/main.yml b/roles/ppa/tasks/main.yml
index 01d6809..918a61c 100644
--- a/roles/ppa/tasks/main.yml
+++ b/roles/ppa/tasks/main.yml
@@ -1,3 +1,7 @@
+- name: Get host distribution
+ ansible.builtin.setup:
+ gather_subset: [distribution_release]
+
- name: Set up PPA repository
ansible.builtin.include_role:
name: apt_repo
@@ -5,4 +9,4 @@
apt_repo_name: '{{ ppa_name }}'
apt_repo_key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x{{ ppa_key }}'
apt_repo_url: 'https://ppa.launchpadcontent.net/{{ ppa_owner }}/{{ ppa_name }}/ubuntu'
- apt_repo_distro: '{{ ppa_distro }}'
+ apt_repo_distro: '{{ ppa_distro | default(ansible_distribution_release) }}'