From 0d67f7b43958fab49cd11aa7cd7ac8a7c97ea7c5 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Sat, 9 Nov 2024 10:09:07 +0100 Subject: [PATCH] dd --- roles/mgrote_minio_configure/tasks/bucket.yml | 0 roles/mgrote_minio_configure/tasks/main.yml | 62 +------------------ roles/mgrote_minio_configure/tasks/policy.yml | 0 roles/mgrote_minio_configure/tasks/user.yml | 0 4 files changed, 2 insertions(+), 60 deletions(-) create mode 100644 roles/mgrote_minio_configure/tasks/bucket.yml create mode 100644 roles/mgrote_minio_configure/tasks/policy.yml create mode 100644 roles/mgrote_minio_configure/tasks/user.yml diff --git a/roles/mgrote_minio_configure/tasks/bucket.yml b/roles/mgrote_minio_configure/tasks/bucket.yml new file mode 100644 index 00000000..e69de29b diff --git a/roles/mgrote_minio_configure/tasks/main.yml b/roles/mgrote_minio_configure/tasks/main.yml index c6289335..089e2b56 100644 --- a/roles/mgrote_minio_configure/tasks/main.yml +++ b/roles/mgrote_minio_configure/tasks/main.yml @@ -1,61 +1,3 @@ --- -- name: ensure group exists - become: true - ansible.builtin.group: - name: "{{ blocky_group }}" - state: present - -- name: ensure user exists - become: true - ansible.builtin.user: - name: "{{ blocky_user }}" - state: present - create_home: false - -- name: ensure binaries are installed - become: true - ansible.builtin.unarchive: - src: "{{ blocky_download_url }}" - dest: /usr/local/bin - remote_src: true - owner: "{{ blocky_user }}" - group: "{{ blocky_group }}" - mode: "0755" - exclude: - - LICENSE - - README.md - notify: - - set cap_net_bind_service - - restart service unit - -- name: ensure conf dir exists - become: true - ansible.builtin.file: - path: "{{ blocky_conf_dir }}" - state: directory - owner: "{{ blocky_user }}" - group: "{{ blocky_group }}" - mode: "0755" - -- name: template configuration - become: true - ansible.builtin.template: - src: "config.yml.j2" - dest: "{{ blocky_conf_dir }}/config.yml" - owner: "{{ blocky_user }}" - group: "{{ blocky_group }}" - mode: "0600" - notify: - - restart service unit - -- name: template service - become: true - ansible.builtin.template: - src: "blocky.service.j2" - dest: /etc/systemd/system/blocky.service - owner: root - group: root - mode: "0644" - notify: - - systemctl daemon-reload - - restart service unit +- name: include client tasks + ansible.builtin.include_tasks: client.yml diff --git a/roles/mgrote_minio_configure/tasks/policy.yml b/roles/mgrote_minio_configure/tasks/policy.yml new file mode 100644 index 00000000..e69de29b diff --git a/roles/mgrote_minio_configure/tasks/user.yml b/roles/mgrote_minio_configure/tasks/user.yml new file mode 100644 index 00000000..e69de29b