Fix pre-commit hooks and move directories

roles/ and inventory/ are now in playbooks/
also fixed issues reported by ansible-lint
This commit is contained in:
Tobias Reisinger 2024-10-14 18:30:24 +02:00
parent dc398ddb6e
commit 4104057771
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
123 changed files with 91 additions and 39 deletions

View file

@ -1,7 +1,7 @@
- name: Find existing caddy site configs
ansible.builtin.find:
paths: "{{ caddy_config_path }}"
recurse: no
recurse: false
register: find_result
- name: Map exisiting/wanted caddy site configs
ansible.builtin.set_fact:

View file

@ -1,6 +1,13 @@
- name: Get running compose projects
ansible.builtin.shell:
cmd: docker container ls --format json | jq .Labels | grep -oe 'com.docker.compose.project=[a-zA-Z0-9_-]*' | sed -e 's/com.docker.compose.project=//' | sort | uniq
cmd: |
set -o pipefail
docker container ls --format json \
| jq .Labels \
| grep -oe 'com.docker.compose.project=[a-zA-Z0-9_-]*' \
| sed -e 's/com.docker.compose.project=//' \
| sort \
| uniq
changed_when: false
register: docker_compose_projects_result
@ -14,4 +21,3 @@
chdir: "{{ (services_path, item) | path_join }}"
changed_when: true
loop: "{{ unused_services }}"