Skip to content

Commit a9368fe

Browse files
author
Derek
committed
fix: add libssl-dev build dependency for cargo tools
cargo-tarpaulin (and cargo-update) depend on openssl-sys which requires libssl-dev and pkg-config to compile from source. Without these, cargo install fails with "Could not find directory of OpenSSL installation".
1 parent c003626 commit a9368fe

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

  • ansible/roles/developer_core/tasks

ansible/roles/developer_core/tasks/rust.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,26 @@
129129
become: false
130130
when: ansible_facts['distribution'] == 'MacOSX'
131131

132+
# ============================================================
133+
# Build dependencies for cargo tools that compile from source
134+
# ============================================================
135+
136+
- name: Install cargo build dependencies (Ubuntu)
137+
ansible.builtin.apt:
138+
name:
139+
- libssl-dev
140+
- pkg-config
141+
state: present
142+
when: ansible_facts['distribution'] == 'Ubuntu'
143+
144+
- name: Install cargo build dependencies (Fedora)
145+
ansible.builtin.dnf:
146+
name:
147+
- openssl-devel
148+
- pkg-config
149+
state: present
150+
when: ansible_facts['distribution'] == 'Fedora'
151+
132152
# ============================================================
133153
# Cargo tools installation
134154
# ============================================================

0 commit comments

Comments
 (0)