cleanup of unused variables, fix error in podman-check

This commit is contained in:
Bastian de Byl
2023-07-24 14:18:25 -04:00
parent 872f2bda84
commit 62a3f5d551
11 changed files with 9 additions and 131 deletions

View File

@@ -61,7 +61,6 @@
group: "{{ podman_user }}"
mode: 0644
loop:
- "{{ api_debyltech_server_name }}.conf"
- "{{ assistant_server_name }}.conf"
- "{{ bookstack_server_name }}.conf"
- "{{ ci_server_name }}.http.conf"
@@ -71,8 +70,6 @@
- "{{ logs_server_name }}.conf"
- "{{ parts_server_name }}.conf"
- "{{ photos_server_name }}.conf"
- "{{ pi_server_name }}.conf"
- "{{ video_server_name }}.conf"
notify:
- restorecon podman
- restart nginx
@@ -87,7 +84,6 @@
group: "{{ podman_user }}"
state: link
loop:
- "{{ api_debyltech_server_name }}.conf"
- "{{ assistant_server_name }}.conf"
- "{{ bookstack_server_name }}.conf"
- "{{ ci_server_name }}.http.conf"
@@ -97,8 +93,6 @@
- "{{ logs_server_name }}.conf"
- "{{ parts_server_name }}.conf"
- "{{ photos_server_name }}.conf"
- "{{ pi_server_name }}.conf"
- "{{ video_server_name }}.conf"
notify:
- restorecon podman
- restart nginx

View File

@@ -39,7 +39,6 @@
- "{{ cloud_server_name }}.https.conf"
- "{{ parts_server_name }}.https.conf"
- "{{ photos_server_name }}.https.conf"
- "{{ api_debyltech_server_name }}.https.conf"
notify:
- restorecon podman
- restart nginx
@@ -59,7 +58,6 @@
- "{{ cloud_server_name }}.https.conf"
- "{{ parts_server_name }}.https.conf"
- "{{ photos_server_name }}.https.conf"
- "{{ api_debyltech_server_name }}.https.conf"
notify:
- restorecon podman
- restart nginx

View File

@@ -66,7 +66,7 @@
env:
DRONE_RPC_SECRET: "{{ drone_rpc_secret }}"
DRONE_RPC_HOST: "drone"
DRONE_RPC_PROTO: "{{ drone_server_proto }}"
DRONE_RPC_PROTO: "{{ drone_runner_proto }}"
DRONE_RUNNER_CAPACITY: "{{ drone_runner_capacity }}"
volumes:
- "/run/user/1002/podman/podman.sock:/var/run/docker.sock"

View File

@@ -10,7 +10,7 @@
- import_tasks: container-drone.yml
vars:
runner_image: docker.io/drone/drone-runner-docker:1.8.3
image: docker.io/drone/drone:2.16.0
image: docker.io/drone/drone:2.18.0
tags: drone
- import_tasks: container-hass.yml

View File

@@ -10,6 +10,7 @@
debug:
msg: "image '{{ container.containers[0]['ImageName'] }}' not equivalent to '{{ container_image }}'!"
when: container.containers[0]["ImageName"] != container_image
ignore_errors: true
- name: delete container if necessary
become: true
@@ -17,4 +18,5 @@
containers.podman.podman_container:
name: "{{ container_name }}"
state: absent
when: container.containers[0]["ImageName"] != container_image
when: container.containers[0]["ImageName"] != container_image
ignore_errors: true