Add support for tags
This commit is contained in:
parent
d2f5548a57
commit
29568f5a05
|
@ -20,111 +20,92 @@
|
|||
- debug_hostvars
|
||||
|
||||
- name: "Configure operating system"
|
||||
include_tasks:
|
||||
file: os.yml
|
||||
apply:
|
||||
import_tasks: os.yml
|
||||
tags:
|
||||
- os
|
||||
- ansible_nopasswd
|
||||
|
||||
- name: "Configure networking"
|
||||
include_tasks:
|
||||
file: network.yml
|
||||
apply:
|
||||
import_tasks: network.yml
|
||||
tags:
|
||||
- network
|
||||
|
||||
- name: "Configure package management"
|
||||
include_tasks:
|
||||
file: package_mgmt.yml
|
||||
apply:
|
||||
import_tasks: package_mgmt.yml
|
||||
tags:
|
||||
- package_mgmt.yml
|
||||
- package_mgmt
|
||||
|
||||
- name: "Configure zsh"
|
||||
import_tasks: zsh.yml
|
||||
tags:
|
||||
- zsh
|
||||
|
||||
- name: "Setup apt proxy cache"
|
||||
include_tasks:
|
||||
file: apt-cacher-ng.yml
|
||||
apply:
|
||||
import_tasks: apt-cacher-ng.yml
|
||||
tags:
|
||||
- apt-cacher-ng.yml
|
||||
- apt-cacher-ng
|
||||
|
||||
- name: "Configure a time server"
|
||||
include_tasks:
|
||||
file: time-server.yml
|
||||
apply:
|
||||
import_tasks: time-server.yml
|
||||
tags:
|
||||
- time-server.yml
|
||||
- time-server
|
||||
|
||||
- name: "Configure the web server"
|
||||
include_tasks:
|
||||
file: nginx.yml
|
||||
apply:
|
||||
import_tasks: nginx.yml
|
||||
tags:
|
||||
- nginx
|
||||
|
||||
- name: "Configure the tftp server"
|
||||
include_tasks:
|
||||
file: tftpd-hpa.yml
|
||||
apply:
|
||||
import_tasks: tftpd-hpa.yml
|
||||
tags:
|
||||
- tftpd-hpa.yml
|
||||
- tftpd-hpa
|
||||
|
||||
- name: "Configure dns server"
|
||||
include_tasks:
|
||||
file: unbound.yml
|
||||
apply:
|
||||
import_tasks: unbound.yml
|
||||
tags:
|
||||
- unbound
|
||||
|
||||
- name: "Configure dhcp"
|
||||
include_tasks:
|
||||
file: isc-dhcp-server.yml
|
||||
apply:
|
||||
import_tasks: isc-dhcp-server.yml
|
||||
tags:
|
||||
- dhcp
|
||||
- isc-dhcp-server
|
||||
|
||||
### RUN ALL SO FAR NOTIFIED HANDLERS NOW
|
||||
- name: "######## Flush handlers ########"
|
||||
ansible.builtin.meta: flush_handlers
|
||||
|
||||
- name: "Prepare FAI"
|
||||
include_tasks:
|
||||
file: fai-prepare.yml
|
||||
apply:
|
||||
import_tasks: fai-prepare.yml
|
||||
tags:
|
||||
- fai_prepare
|
||||
|
||||
- name: "Configure FAI"
|
||||
include_tasks:
|
||||
file: fai-configure.yml
|
||||
apply:
|
||||
- name: "Configure '{{ fai_dir_etc }}'"
|
||||
import_tasks: fai-etc-dir.yml
|
||||
tags:
|
||||
- fai_configure
|
||||
- fai_etc_dir
|
||||
- fai_nfsroot
|
||||
|
||||
- name: "Transfer FAI profiles"
|
||||
include_tasks:
|
||||
file: fai-profiles.yml
|
||||
apply:
|
||||
- name: "Configure '{{ fai_dir_config }}'"
|
||||
import_tasks: fai-config-dir.yml
|
||||
tags:
|
||||
- fai_profiles
|
||||
- fai_config_dir
|
||||
|
||||
### RUN ALL SO FAR NOTIFIED HANDLERS NOW
|
||||
- name: "######## Flush handlers ########"
|
||||
ansible.builtin.meta: flush_handlers
|
||||
|
||||
- name: "Create FAI nfsroot"
|
||||
include_tasks:
|
||||
file: fai-nfsroot.yml
|
||||
apply:
|
||||
import_tasks: fai-nfsroot.yml
|
||||
tags:
|
||||
- fai_nfsroot
|
||||
|
||||
- name: "Configure FAI PXE"
|
||||
include_tasks:
|
||||
file: fai-pxe.yml
|
||||
apply:
|
||||
import_tasks: fai-pxe.yml
|
||||
tags:
|
||||
- fai_pxe
|
||||
|
||||
- name: "Configure FAI iPXE"
|
||||
include_tasks:
|
||||
file: fai-ipxe.yml
|
||||
apply:
|
||||
import_tasks: fai-ipxe.yml
|
||||
tags:
|
||||
- fai_ipxe
|
||||
|
|
Loading…
Reference in New Issue