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: glob_apt:
mirror: "http://mirror.crans.org/" mirror: "http://mirror.adm.ynerant.fr/"
backports: false backports: false
extra_repositories: [] extra_repositories: []
pin: pin:

17
hosts
View File

@ -9,15 +9,26 @@ ynerant-pc.fil.sand.auro.re
ynerant-thinkpad.wifi.sand.auro.re ynerant-thinkpad.wifi.sand.auro.re
localhost localhost
[server] [server:children]
templier.adh.crans.org virtu
dt.adh.crans.org vm
[slapd] [slapd]
dt.adh.crans.org dt.adh.crans.org
[virtu] [virtu]
dt.adh.crans.org 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] [all:vars]
# Force remote to use Python 3 # Force remote to use Python 3

View File

@ -10,11 +10,11 @@
- vim - vim
- ssh - ssh
- hosts: templier.adh.crans.org #- hosts: templier.adh.crans.org
roles: # roles:
- bind # - bind
- docker # - docker
become: yes # become: yes
- hosts: perso - hosts: perso
roles: 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 - name: Add mirror.crans.org in /etc/hosts
lineinfile: lineinfile:
state: present state: present
path: /etc/hosts path: /etc/hosts
regex: "^{{ item }}" regex: "^{{ item }}"
line: "{{ item }} mirror.crans.org charybde.crans.org mirror" line: "{{ item }} mirror.adm.ynerant.fr"
loop: loop:
- "185.230.79.30" - "172.16.42.102"
- "2a0c:700:2:0:ea39:35ff:fef0:48c9" - "fd00::42:4000:ff:fe01:242"
- name: Configure Debian repositories - name: Configure Debian repositories
template: template:

View File

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