mirror of
https://github.com/Alkatrazz24/Funk-lab.git
synced 2026-07-15 08:04:41 +02:00
feat: initial commit — Ansible roles storage-01/gpu-01 opérationnels
This commit is contained in:
commit
b3fce8af5d
70 changed files with 2688 additions and 0 deletions
29
ansible/roles/dnsmasq/tasks/main.yml
Normal file
29
ansible/roles/dnsmasq/tasks/main.yml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue