added task to add custom repo
Change-Id: I0b7e0da2621ee94d26af3802551f8f48b80666b8
This commit is contained in:
parent
5cc2c776df
commit
cceeb8ee66
@ -15,3 +15,11 @@
|
||||
|
||||
base_server_groups: []
|
||||
base_server_users: []
|
||||
base_server_apt_keys:
|
||||
- id: "1586E327"
|
||||
url: "http://repo.vexxhost.net/key.gpg"
|
||||
state: "present"
|
||||
base_server_apt_repositories:
|
||||
- filename: "vexxhost"
|
||||
url: "deb http://repo.vexxhost.net/ buster main"
|
||||
state: "present"
|
||||
|
@ -36,3 +36,21 @@
|
||||
state: "{{ item.state | default(omit) }}"
|
||||
become: true
|
||||
with_items: "{{ base_server_users }}"
|
||||
|
||||
- name: Import APT keys
|
||||
apt_key:
|
||||
id: "{{ item.id }}"
|
||||
url: "{{ item.url }}"
|
||||
state: "{{ item.state | default(omit) }}"
|
||||
become: true
|
||||
when: ansible_os_family == "Debian"
|
||||
loop: "{{ base_server_apt_keys }}"
|
||||
|
||||
- name: Add APT repositories
|
||||
apt_repository:
|
||||
repo: "{{ item.url }}"
|
||||
filename: "{{ item.filename }}"
|
||||
state: "{{ item.state | default(omit) }}"
|
||||
become: true
|
||||
when: ansible_os_family == "Debian"
|
||||
with_items: "{{ base_server_apt_repositories }}"
|
||||
|
Loading…
Reference in New Issue
Block a user