Lint

Changed files
+6 -6
config
roles
knot
defaults
tasks
templates
+1 -1
config/deploy.yaml
···
roles:
- geerlingguy.docker
-
- knot-docker
+
- knot
+1 -1
config/roles/knot-docker/defaults/main.yaml config/roles/knot/defaults/main.yaml
···
knot_server_port: "443"
knot_appview_endpoint: "https://tangled.sh"
knot_deploy_dir: "/opt/knot"
-
knot_enable_caddy: false # Set to true to enable Caddy reverse proxy
+
knot_enable_caddy: false # Set to true to enable Caddy reverse proxy
knot_uid: "1000"
knot_gid: "1000"
+4 -4
config/roles/knot-docker/tasks/main.yaml config/roles/knot/tasks/main.yaml
···
ansible.builtin.file:
path: "{{ knot_deploy_dir }}"
state: directory
-
mode: '0755'
+
mode: "0755"
- name: Create Knot data directories
ansible.builtin.file:
path: "{{ knot_deploy_dir }}/{{ item }}"
state: directory
-
mode: '0755'
+
mode: "0755"
owner: "{{ knot_uid }}"
group: "{{ knot_gid }}"
loop:
···
ansible.builtin.template:
src: docker-compose.yml.j2
dest: "{{ knot_deploy_dir }}/docker-compose.yml"
-
mode: '0644'
+
mode: "0644"
- name: Create .env file for Knot
ansible.builtin.template:
src: env.j2
dest: "{{ knot_deploy_dir }}/.env"
-
mode: '0600'
+
mode: "0600"
- name: Pull Knot Docker image
community.docker.docker_image:
config/roles/knot-docker/templates/docker-compose.yml.j2 config/roles/knot/templates/docker-compose.yml.j2
config/roles/knot-docker/templates/env.j2 config/roles/knot/templates/env.j2