blob: 52ac245369f992315b005a8f013ed03c5e08844e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
- name: Get host distro
ansible.builtin.setup:
gather_subset:
- distribution
- distribution_release
- name: Set platform-specific variables
loop:
- "{{ ansible_facts['distribution'] }}.yml"
- "{{ ansible_facts['distribution'] }}_{{ ansible_facts['distribution_release'] }}.yml"
vars:
__ppa_vars_file: '{{ role_path }}/vars/{{ item }}'
when: __ppa_vars_file is exists
ansible.builtin.include_vars: '{{ __ppa_vars_file }}'
- name: Set up PPA repository
vars:
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_codename: '{{ ppa_distro }}'
# All PPA repositories are Ubuntu repositories, even though they might be used on Debian:
apt_repo_append_distro: false
ansible.builtin.include_role:
name: apt_repo
|