mise à jours script

This commit is contained in:
Adrian Amaglio 2023-05-02 10:59:13 +02:00
parent 0a0fa0b9f1
commit b7757e4168
3 changed files with 6 additions and 1 deletions

View File

@ -70,6 +70,7 @@ for dir in /docker/* ; do
# Ignore _ prefixed directories # Ignore _ prefixed directories
[ "${service::1}" == '_' ] && continue [ "${service::1}" == '_' ] && continue
[ ! -d "$dir" ] && continue
docker_service="$(echo "$service" | tr '.' '_')" docker_service="$(echo "$service" | tr '.' '_')"
driglibash_section_prefix="[$service] " driglibash_section_prefix="[$service] "

View File

@ -29,9 +29,11 @@
- name: Install some softwares - name: Install some softwares
apt: apt:
name: ['bind9', 'certbot', 'dnsutils', 'git', 'gnupg2', 'htop', 'netcat-openbsd', 'nginx', 'rsync', 'sshfs', 'vim', 'zip'] name: ['bind9', 'certbot', 'dnsutils', 'git', 'gnupg2', 'htop', 'netcat-openbsd', 'nginx', 'rsync', 'screen', 'sshfs', 'vim', 'wget', 'zip']
state: latest state: latest
# TODO disable certbot and certbot.timer services. We are using our own
- name: create needed dirs - name: create needed dirs
ansible.builtin.file: ansible.builtin.file:
path: "{{item}}" path: "{{item}}"

2
services/list_ips.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
grep -ho '172.29.[^.]' . -r | sort -u