26 lines
800 B
YAML
26 lines
800 B
YAML
# vim: set filetype=yaml.ansible :
|
|
---
|
|
- name: Set packer config
|
|
ansible.builtin.set_fact:
|
|
packer:
|
|
method: "{{ pkgconfig.packer.method[ansible_system] | default(pkgconfig.packer.method.default) }}"
|
|
|
|
- name: Set packer config for system install
|
|
when:
|
|
- packer.method == 'sys' or
|
|
packer.method == 'tap'
|
|
ansible.builtin.set_fact:
|
|
packer:
|
|
method: "{{ packer.method }}"
|
|
pkgs: "{{ pkgconfig.packer.pkgs[ansible_system] }}"
|
|
|
|
- name: Set packer config for archive install
|
|
when:
|
|
- packer.method == 'archive'
|
|
ansible.builtin.set_fact:
|
|
packer:
|
|
method: "{{ packer.method }}"
|
|
archive:
|
|
file: "packer_{{ pkgconfig.packer.version }}_linux_amd64.zip"
|
|
url: "{{ pkgconfig.packer.archive.baseurl }}/packer/{{ pkgconfig.packer.version }}"
|