Merge pull request 'fix-lint-208-warning' (!99) from fix-lint-208-warning into master

Reviewed-on: https://gitea.n39.eu/Netz39_Admin/netz39-infra-ansible/pulls/99
This commit is contained in:
Stefan Haun 2022-10-31 16:32:40 +00:00
commit 0fd6e3a864
6 changed files with 21 additions and 10 deletions

View file

@ -42,13 +42,14 @@
- name: Ensure openLDAP directories are present. - name: Ensure openLDAP directories are present.
file: file:
path: "{{ item }}" path: "{{ item.path }}"
mode: "0755"
state: directory state: directory
with_items: with_items:
- "{{ openldap_data }}/ldap" - path: "{{ openldap_data }}/ldap"
- "{{ openldap_data }}/slapd" - path: "{{ openldap_data }}/slapd"
- "{{ openldap_data }}/ldif" - path: "{{ openldap_data }}/ldif"
- "{{ dehydrated_certs_dir }}/{{ openldap_domain }}" - path: "{{ dehydrated_certs_dir }}/{{ openldap_domain }}"
- name: Ensure container for openLDAP is running. - name: Ensure container for openLDAP is running.
docker_container: docker_container:

View file

@ -202,11 +202,14 @@
- name: Ensure the hedgedoc directories exist - name: Ensure the hedgedoc directories exist
file: file:
path: "{{ item }}" path: "{{ item.path }}"
mode: "{{ item.mode }}"
state: directory state: directory
with_items: with_items:
- "{{ data_dir }}/hedgedoc/data/database" - path: "{{ data_dir }}/hedgedoc/data/database"
- "{{ data_dir }}/hedgedoc/data/uploads" mode: "0700"
- path: "{{ data_dir }}/hedgedoc/data/uploads"
mode: "0755"
- name: Setup docker network - name: Setup docker network
docker_network: docker_network:
@ -267,6 +270,7 @@
- name: Ensure the influxdb directories exist - name: Ensure the influxdb directories exist
file: file:
path: "{{ item }}" path: "{{ item }}"
mode: 0700
state: directory state: directory
with_items: with_items:
- "{{ data_dir }}/influxdb" - "{{ data_dir }}/influxdb"
@ -362,9 +366,10 @@
- name: Ensure the uptime-kuma directories exist - name: Ensure the uptime-kuma directories exist
file: file:
path: "{{ item }}" path: "{{ item }}"
mode: "0755"
state: directory state: directory
with_items: with_items:
- "{{ data_dir }}/uptimekuma" - "{{ data_dir }}/uptime-kuma"
- name: Ensure container for uptime-kuma is running - name: Ensure container for uptime-kuma is running
docker_container: docker_container:

View file

@ -42,6 +42,7 @@
- name: Ensure the mosquitto directories exist - name: Ensure the mosquitto directories exist
file: file:
path: "{{ item }}" path: "{{ item }}"
mode: 0755
state: directory state: directory
with_items: with_items:
- "{{ mosquitto_data }}/config" - "{{ mosquitto_data }}/config"
@ -52,6 +53,7 @@
template: template:
src: "templates/mosquitto.conf.j2" src: "templates/mosquitto.conf.j2"
dest: "{{ mosquitto_data }}/config/mosquitto.conf" dest: "{{ mosquitto_data }}/config/mosquitto.conf"
mode: 0644
notify: restart mosquitto notify: restart mosquitto
- name: Ensure mosquitto is running - name: Ensure mosquitto is running

View file

@ -52,6 +52,7 @@
template: template:
src: templates/daemon.json.j2 src: templates/daemon.json.j2
dest: /etc/docker/daemon.json dest: /etc/docker/daemon.json
mode: "0644"
notify: restart docker notify: restart docker
- name: Check current docker-compose version. - name: Check current docker-compose version.
@ -72,7 +73,7 @@
get_url: get_url:
url: https://github.com/docker/compose/releases/download/{{ docker_compose_version }}/docker-compose-Linux-x86_64 url: https://github.com/docker/compose/releases/download/{{ docker_compose_version }}/docker-compose-Linux-x86_64
dest: "{{ docker_compose_path }}" dest: "{{ docker_compose_path }}"
mode: 0755 mode: "0755"
- name: Place admin users in docker group - name: Place admin users in docker group
user: user:

View file

@ -3,6 +3,7 @@
template: template:
src: templates/apache-docker-proxy-site.j2 src: templates/apache-docker-proxy-site.j2
dest: /etc/apache2/sites-available/{{ site_name }}.conf dest: /etc/apache2/sites-available/{{ site_name }}.conf
mode: "0644"
notify: restart apache2 notify: restart apache2
- name: Activate Apache2 site - name: Activate Apache2 site

View file

@ -88,6 +88,7 @@
file: file:
path: "{{ data_dir }}/registry/data" path: "{{ data_dir }}/registry/data"
state: directory state: directory
mode: "0755"
- name: Setup Docker Registry Container - name: Setup Docker Registry Container
docker_container: docker_container: