Folder -> directory

This commit is contained in:
Sam A. 2023-12-28 00:07:21 +01:00
parent 66e7fbc6b6
commit a52bb7fafa
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
8 changed files with 21 additions and 14 deletions

View file

@ -1,7 +1,7 @@
# vim: ft=yaml.ansible # vim: ft=yaml.ansible
# code: language=ansible # code: language=ansible
--- ---
- name: Create app folder for {{ app_name }} - name: Create app directory for {{ app_name }}
ansible.builtin.file: ansible.builtin.file:
path: "{{ apps_data_root }}/{{ app_name }}" path: "{{ apps_data_root }}/{{ app_name }}"
owner: root owner: root
@ -15,7 +15,7 @@
owner: root owner: root
mode: u=rw,go= mode: u=rw,go=
- name: Create data folder for {{ app_name }} - name: Create data directory for {{ app_name }}
ansible.builtin.file: ansible.builtin.file:
path: "{{ apps_data_root }}/{{ app_name }}/data" path: "{{ apps_data_root }}/{{ app_name }}/data"
owner: root owner: root

View file

@ -1,7 +1,7 @@
# vim: ft=yaml.ansible # vim: ft=yaml.ansible
# code: language=ansible # code: language=ansible
--- ---
- name: Create subfolders for IPFS data - name: Create subdirectories for IPFS data
ansible.builtin.file: ansible.builtin.file:
path: "{{ dir }}" path: "{{ dir }}"
owner: root owner: root

View file

@ -1,7 +1,7 @@
# vim: ft=yaml.ansible # vim: ft=yaml.ansible
# code: language=ansible # code: language=ansible
--- ---
- name: Create subfolder for monerod data - name: Create subdirectory for monerod data
ansible.builtin.file: ansible.builtin.file:
path: "{{ apps_data_root }}/monerod/data/bitmonero" path: "{{ apps_data_root }}/monerod/data/bitmonero"
owner: '1000' owner: '1000'

View file

@ -1,14 +1,14 @@
# vim: ft=yaml.ansible # vim: ft=yaml.ansible
# code: language=ansible # code: language=ansible
--- ---
- name: Create subfolder for Nextcloud Apache2 config - name: Create subdirectory for Nextcloud Apache2 config
ansible.builtin.file: ansible.builtin.file:
path: "{{ apps_data_root }}/nextcloud/data/apache2" path: "{{ apps_data_root }}/nextcloud/data/apache2"
owner: root owner: root
mode: u=rwx,g=rx,o=rx mode: u=rwx,g=rx,o=rx
state: directory state: directory
- name: Create subfolder for Nextcloud data - name: Create subdirectory for Nextcloud data
ansible.builtin.file: ansible.builtin.file:
path: "{{ apps_data_root }}/nextcloud/data/app" path: "{{ apps_data_root }}/nextcloud/data/app"
owner: root owner: root

View file

@ -1,7 +1,7 @@
# vim: ft=yaml.ansible # vim: ft=yaml.ansible
# code: language=ansible # code: language=ansible
--- ---
- name: Create subfolder for nginx config files - name: Create subdirectory for nginx config files
ansible.builtin.file: ansible.builtin.file:
path: "{{ apps_data_root }}/nginx/data/conf.d" path: "{{ apps_data_root }}/nginx/data/conf.d"
owner: root owner: root

View file

@ -16,7 +16,7 @@
state: present state: present
when: "'postfix' in apps_include" when: "'postfix' in apps_include"
- name: Create base folder for apps - name: Create base directory for apps
ansible.builtin.file: ansible.builtin.file:
path: "{{ apps_data_root }}" path: "{{ apps_data_root }}"
owner: root owner: root

View file

@ -24,7 +24,7 @@
update_cache: true update_cache: true
state: present state: present
- name: Create PostgreSQL service override folder - name: Create PostgreSQL service override directory
ansible.builtin.file: ansible.builtin.file:
path: /etc/systemd/system/{{ postgresql_service }}.service.d path: /etc/systemd/system/{{ postgresql_service }}.service.d
owner: root owner: root
@ -42,13 +42,20 @@
- name: Flush handlers - name: Flush handlers
ansible.builtin.meta: flush_handlers ansible.builtin.meta: flush_handlers
- name: Create PGDATA folder - name: Create PGDATA directory
ansible.builtin.file: ansible.builtin.file:
path: "{{ postgresql_pgdata }}" path: "{{ postgresql_pgdata }}"
owner: postgres owner: postgres
mode: u=rwx,go= mode: u=rwx,go=
state: directory state: directory
- name: Create WAL archive directory
ansible.builtin.file:
path: "{{ postgresql_wal_archive }}"
owner: postgres
mode: u=rwx,go=
state: directory
- name: Initialize database - name: Initialize database
ansible.builtin.command: ansible.builtin.command:
cmd: /usr/pgsql-{{ postgresql_version }}/bin/postgresql-{{ postgresql_version }}-setup initdb cmd: /usr/pgsql-{{ postgresql_version }}/bin/postgresql-{{ postgresql_version }}-setup initdb

View file

@ -1,14 +1,14 @@
# vim: ft=yaml.ansible # vim: ft=yaml.ansible
# code: language=ansible # code: language=ansible
--- ---
- name: Create base folder for Caddy - name: Create base directory for Caddy
ansible.builtin.file: ansible.builtin.file:
path: "{{ proxy_data_root }}" path: "{{ proxy_data_root }}"
owner: root owner: root
mode: u=rwx,g=rx,o=rx mode: u=rwx,g=rx,o=rx
state: directory state: directory
- name: Create build folder for Caddy - name: Create build directory for Caddy
ansible.builtin.file: ansible.builtin.file:
path: "{{ proxy_data_root }}/build" path: "{{ proxy_data_root }}/build"
owner: root owner: root
@ -30,7 +30,7 @@
mode: u=rw,g=r,o=r mode: u=rw,g=r,o=r
notify: Build custom Docker image for Caddy notify: Build custom Docker image for Caddy
- name: Create data folder for Caddy - name: Create data directory for Caddy
ansible.builtin.file: ansible.builtin.file:
path: "{{ proxy_data_root }}/data" path: "{{ proxy_data_root }}/data"
owner: root owner: root
@ -44,7 +44,7 @@
owner: root owner: root
mode: u=rw,go= mode: u=rw,go=
- name: Create subfolders for Caddy data - name: Create subdirectories for Caddy data
ansible.builtin.file: ansible.builtin.file:
path: "{{ proxy_data_root }}/data/caddy-{{ item }}" path: "{{ proxy_data_root }}/data/caddy-{{ item }}"
owner: root owner: root