]> git.arvados.org - arvados.git/blob - tools/ansible/roles/arvados_keepstore/tasks/main.yml
Merge branch '23063-process-properties'
[arvados.git] / tools / ansible / roles / arvados_keepstore / tasks / main.yml
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: Apache-2.0
4
5 - name: Ensure Keepstore Directory roots exist
6   become: yes
7   ansible.builtin.file:
8     state: directory
9     path: "{{ item }}"
10     owner: root
11     group: root
12     mode: 0750
13   loop: "{{ arvados_cluster.Volumes.values()|selectattr('Driver', '==', 'Directory')|map(attribute='DriverParameters.Root')|unique }}"
14
15 - name: apt update if needed
16   ansible.builtin.meta: flush_handlers
17
18 - name: Install Arvados keepstore
19   become: yes
20   ansible.builtin.apt:
21     name:
22       - keepstore
23
24 - name: Start and enable keepstore.service
25   become: yes
26   ansible.builtin.systemd_service:
27     name: keepstore.service
28     state: "{{ 'restarted' if arvados_config_changed else 'started' }}"
29     enabled: true