This commit is contained in:
rockstable 2022-12-07 21:52:49 +01:00
parent 5fb112fb56
commit 3cf440cd4e
1 changed files with 80 additions and 30 deletions

View File

@ -20,64 +20,114 @@
- debug_hostvars
- name: "Configure operating system"
include_tasks: os.yml
tags:
- ansible_nopasswd
include_tasks:
file: os.yml
apply:
tags:
- os
- ansible_nopasswd
- name: "Configure networking"
include_tasks: network.yml
tags:
- network
include_tasks:
file: network.yml
apply:
tags:
- network
- name: "Configure package management"
include_tasks: package_mgmt.yml
tags:
- package_mgmt
include_tasks:
file: package_mgmt.yml
apply:
tags:
- package_mgmt.yml
- name: "Setup apt proxy cache"
include_tasks: apt-cacher-ng.yml
include_tasks:
file: apt-cacher-ng.yml
apply:
tags:
- apt-cacher-ng.yml
- name: "Configure a time server"
include_tasks: time-server.yml
include_tasks:
file: time-server.yml
apply:
tags:
- time-server.yml
- name: "Configure the web server"
include_tasks: nginx.yml
include_tasks:
file: nginx.yml
apply:
tags:
- nginx
- name: "Configure the tftp server"
include_tasks: tftpd-hpa.yml
include_tasks:
file: tftpd-hpa.yml
apply:
tags:
- tftpd-hpa.yml
- name: "Configure dns server"
include_tasks: unbound.yml
tags:
- unbound
include_tasks:
file: unbound.yml
apply:
tags:
- unbound
- name: "Configure dhcp"
include_tasks: isc-dhcp-server.yml
tags:
- dhcp
include_tasks:
file: isc-dhcp-server.yml
apply:
tags:
- dhcp
### RUN ALL SO FAR NOTIFIED HANDLERS NOW
- name: "######## Flush handlers ########"
ansible.builtin.meta: flush_handlers
- name: "Prepare FAI"
include_tasks: fai-prepare.yml
tags:
- fai_prepare
include_tasks:
file: fai-prepare.yml
apply:
tags:
- fai_prepare
- name: "Configure FAI"
include_tasks: fai-configure.yml
tags:
- fai_configure
include_tasks:
file: fai-configure.yml
apply:
tags:
- fai_configure
- name: "Transfer FAI profiles"
include_tasks: fai-profiles.yml
include_tasks:
file: fai-profiles.yml
apply:
tags:
- fai_profiles
- name: "Create FAI root"
include_tasks: fai-nfsroot.yml
tags:
- fai_profiles
- name: "Create FAI nfsroot"
include_tasks:
file: fai-nfsroot.yml
apply:
tags:
- fai_nfsroot
- name: "Configure FAI PXE"
include_tasks: fai-pxe.yml
include_tasks:
file: fai-pxe.yml
apply:
tags:
- fai_pxe
- name: "Configure FAI iPXE"
include_tasks: fai-ipxe.yml
include_tasks:
file: fai-ipxe.yml
apply:
tags:
- fai_ipxe