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:
parent
dc398ddb6e
commit
4104057771
123 changed files with 91 additions and 39 deletions
playbooks/tasks
|
@ -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:
|
||||
|
|
|
@ -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 }}"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue