feat: initial commit — Ansible roles storage-01/gpu-01 opérationnels

This commit is contained in:
alkatrazz 2026-05-12 17:17:03 +02:00
commit b3fce8af5d
70 changed files with 2688 additions and 0 deletions

View file

@ -0,0 +1,29 @@
---
- name: Install dnsmasq
ansible.builtin.dnf:
name: dnsmasq
state: present
- name: Deploy dnsmasq config
ansible.builtin.template:
src: dnsmasq.conf.j2
dest: /etc/dnsmasq.conf
mode: '0644'
notify: Restart dnsmasq
- name: Deploy dnsmasq systemd override (wait for USB ethernet)
ansible.builtin.copy:
dest: /etc/systemd/system/dnsmasq.service.d/wait-for-network.conf
content: |
[Unit]
After=network-online.target
Wants=network-online.target
mode: '0644'
notify: Reload systemd
- name: Enable and start dnsmasq
ansible.builtin.systemd:
name: dnsmasq
enabled: true
daemon_reload: true
state: started