aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/roles/ppa/tasks/main.yml
blob: e71a2a8645b56549dc2d1c0632ab733cc7802800 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
- name: Get host distro
  ansible.builtin.setup:
    gather_subset: [distribution_release]

- name: Set up PPA repository
  ansible.builtin.include_role:
    name: apt_repo
  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_distro: '{{ ppa_distro | default(ansible_distribution_release) }}'