Eric Morino
7b667d1650
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2777|2|2775|2|:-1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/253//ansiblelint">Evolix » ansible-roles » unstable #253</a>
gitea/ansible-roles/pipeline/head This commit looks good
43 lines
1 KiB
YAML
43 lines
1 KiB
YAML
---
|
|
- name: Create {{ nextcloud_user }} unix group
|
|
|
|
ansible.builtin.group:
|
|
name: "{{ nextcloud_user | mandatory }}"
|
|
state: present
|
|
tags:
|
|
- nextcloud
|
|
|
|
- name: Create {{ nextcloud_user | mandatory }} unix user
|
|
ansible.builtin.user:
|
|
name: "{{ nextcloud_user | mandatory }}"
|
|
group: "{{ nextcloud_user | mandatory }}"
|
|
home: "{{ nextcloud_home | mandatory }}"
|
|
shell: '/bin/bash'
|
|
create_home: True
|
|
state: present
|
|
# mode: "0755"
|
|
tags:
|
|
- nextcloud
|
|
|
|
- name: Create top-level directories
|
|
ansible.builtin.file:
|
|
dest: "{{ item }}"
|
|
state: directory
|
|
mode: "0700"
|
|
owner: "{{ nextcloud_user }}"
|
|
group: "{{ nextcloud_user }}"
|
|
loop:
|
|
- "{{ nextcloud_home }}/log"
|
|
- "{{ nextcloud_home }}/tmp"
|
|
- "{{ nextcloud_home }}/data"
|
|
tags:
|
|
- nextcloud
|
|
|
|
- name: Mount up Ceph volume by UUID
|
|
ansible.posix.mount:
|
|
path: "{{ nextcloud_data }}"
|
|
src: "{{ nextcloud_data_uuid }}"
|
|
fstype: ext4
|
|
opts: defaults,noexec,nosuid,nodev,relatime,lazytime
|
|
state: present
|