Skip to content

Commit

Permalink
Enable SQLcipher role
Browse files Browse the repository at this point in the history
  • Loading branch information
lwesterhof committed Nov 22, 2024
1 parent d25a771 commit cdf15f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 25 deletions.
2 changes: 1 addition & 1 deletion roles/irods_icat/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ dependencies:
- role: irods_database
- role: irods_icommands
- role: python_irodsclient
# - role: sqlcipher
- role: sqlcipher
25 changes: 2 additions & 23 deletions roles/sqlcipher/tasks/install-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,10 @@
ansible.builtin.include_vars: "{{ ansible_os_family }}.yml"


# Ubuntu 20.04 LTS includes SQLCipher 3 by default. We need SQLCipher 4,
# so that we can migrate token databases created on SQLCipher 4 to Ubuntu
# 20.04 LTS servers.
- name: Ensure standard SQLCipher packages are not installed
- name: Ensure SQLCipher packages are installed
ansible.builtin.package:
name:
- libsqlcipher0
- sqlcipher
- libsqlcipher1
- libsqlcipher-dev
state: absent


- name: Download SQLCipher packages
ansible.builtin.get_url:
url: '{{ item.value.url }}'
dest: '{{ sqlcipher_package_dir }}/{{ item.value.filename }}'
checksum: '{{ item.value.checksum }}'
mode: '0644'
when: item.value.package not in ansible_facts.packages or item.value.version != ansible_facts.packages[item.value.package][0]['version']
with_dict: '{{ sqlcipher_packages }}'


- name: Install SQLCipher from downloaded package files
ansible.builtin.apt:
deb: '{{ sqlcipher_package_dir }}/{{ item.value.filename }}'
state: present
when: not ansible_check_mode and (item.value.package not in ansible_facts.packages or item.value.version != ansible_facts.packages[item.value.package][0]['version'])
with_dict: '{{ sqlcipher_packages }}'
2 changes: 1 addition & 1 deletion roles/yoda_rulesets/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ galaxy_info:
dependencies:
- role: python3
- role: python_irodsclient
# - role: sqlcipher
- role: sqlcipher

0 comments on commit cdf15f2

Please sign in to comment.