templier is here

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
Yohann D'ANELLO 2021-05-24 18:28:25 +02:00
parent 1115f7d0a8
commit 571f694ed1
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
5 changed files with 33 additions and 12 deletions

View File

@ -1,6 +1,6 @@
---
glob_apt:
mirror: "http://mirror.crans.org/"
mirror: "http://mirror.adm.ynerant.fr/"
backports: false
extra_repositories: []
pin:

17
hosts
View File

@ -9,15 +9,26 @@ ynerant-pc.fil.sand.auro.re
ynerant-thinkpad.wifi.sand.auro.re
localhost
[server]
templier.adh.crans.org
dt.adh.crans.org
[server:children]
virtu
vm
[slapd]
dt.adh.crans.org
[virtu]
dt.adh.crans.org
templier.adm.ynerant.fr
[vm]
routeur-templier.adm.ynerant.fr
proxy.adm.ynerant.fr
dns.adm.ynerant.fr
mailu.adm.ynerant.fr
psql.adm.ynerant.fr
synapse.adm.ynerant.fr
docker.adm.ynerant.fr
# candilib.adm.ynerant.fr
[all:vars]
# Force remote to use Python 3

View File

@ -10,11 +10,11 @@
- vim
- ssh
- hosts: templier.adh.crans.org
roles:
- bind
- docker
become: yes
#- hosts: templier.adh.crans.org
# roles:
# - bind
# - docker
# become: yes
- hosts: perso
roles:

View File

@ -1,13 +1,22 @@
---
- name: Clear charybde configuration
lineinfile:
state: absent
path: /etc/hosts
regex: "^{{ item }}"
loop:
- "185.230.79.30"
- "2a0c:700:2:0:ea39:35ff:fef0:48c9"
- name: Add mirror.crans.org in /etc/hosts
lineinfile:
state: present
path: /etc/hosts
regex: "^{{ item }}"
line: "{{ item }} mirror.crans.org charybde.crans.org mirror"
line: "{{ item }} mirror.adm.ynerant.fr"
loop:
- "185.230.79.30"
- "2a0c:700:2:0:ea39:35ff:fef0:48c9"
- "172.16.42.102"
- "fd00::42:4000:ff:fe01:242"
- name: Configure Debian repositories
template:

View File

@ -5,6 +5,7 @@
- bash
- bash-completion
- bat
- curl
- "{% if ansible_os_family == 'Debian' %}dnsutils{% else %}bind-tools{% endif %}"
- git
- man