Files
infra/ansible/roles/olm/tasks/main.yaml
2026-01-26 16:07:22 -07:00

43 lines
1.0 KiB
YAML

- name: Download and verify the olm binary
get_url:
url: "https://github.com/fosrl/olm/releases/download/{{ olm_version }}/olm_linux_amd64"
dest: "/usr/local/bin/olm_linux_amd64-{{ olm_version }}"
checksum: "{{ olm_checksum }}"
notify: restart olm
- name: Create olm binary symlink
file:
src: "/usr/local/bin/olm_linux_amd64-{{ olm_version }}"
dest: "/usr/local/bin/olm"
state: link
owner: root
group: root
mode: '0755' # Permissions for the target file
force: yes
notify: restart olm
- name: Create olm config directory
file:
path: {{ olm_config_path }}
state: directory
mode: '0700'
owner: root
group: root
- name: Create olm config file
template:
src: templates/config.json.j2
dest: {{ olm_config_path}}/config.json
owner: root
group: root
mode: '0600'
- name: Create olm systemd service
template:
src: templates/olm.service.j2
dest: /etc/systemd/system/olm.service
owner: root
group: root
mode: '0600'
notify: restart olm