Add tags to tasks
This commit is contained in:
parent
6d5931941f
commit
c0c1c28ae3
|
@ -2,6 +2,9 @@
|
|||
ansible.builtin.package:
|
||||
name: ipxe
|
||||
state: present
|
||||
tags:
|
||||
- ipxe
|
||||
- ipxe_install
|
||||
|
||||
- name: "Copy ipxe"
|
||||
ansible.builtin.copy:
|
||||
|
@ -13,6 +16,9 @@
|
|||
- "/usr/lib/ipxe/ipxe.pxe"
|
||||
- "/usr/lib/ipxe/ipxe.lkrn"
|
||||
notify: restart tftpd
|
||||
tags:
|
||||
- ipxe
|
||||
- ipxe_copy
|
||||
|
||||
- name: "Write ipxe menu"
|
||||
ansible.builtin.copy:
|
||||
|
@ -102,3 +108,6 @@
|
|||
group: root
|
||||
notify: restart tftpd
|
||||
|
||||
tags:
|
||||
- ipxe
|
||||
- ipxe_menu_write
|
||||
|
|
|
@ -3,17 +3,23 @@
|
|||
paths: "/srv/fai/nfsroot/boot"
|
||||
patterns: "vmlinuz-*"
|
||||
register: fai_live_vmlinuz
|
||||
tags:
|
||||
- ipxe
|
||||
|
||||
- name: "Find linux initial ram-disks"
|
||||
ansible.builtin.find:
|
||||
paths: "/srv/fai/nfsroot/boot"
|
||||
patterns: "initrd.img-*"
|
||||
register: fai_live_initrd
|
||||
tags:
|
||||
- ipxe
|
||||
|
||||
- name: "Manipulate file pathes"
|
||||
ansible.builtin.set_fact:
|
||||
fai_live_vmlinuz: "{{ fai_live_vmlinuz.files[0].path |regex_replace('.*/', '') }}"
|
||||
fai_live_initrd: "{{ fai_live_initrd.files[0].path |regex_replace('.*/', '') }}"
|
||||
tags:
|
||||
- ipxe
|
||||
|
||||
- name: "Copy linux kernel and initrd to tftp root"
|
||||
ansible.builtin.copy:
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
name:
|
||||
- nginx-light
|
||||
state: present
|
||||
tags:
|
||||
- nginx
|
||||
- nginx_install
|
||||
|
||||
- name: "Configure http server"
|
||||
ansible.builtin.copy:
|
||||
|
@ -27,6 +30,13 @@
|
|||
owner: root
|
||||
group: root
|
||||
notify: restart nginx
|
||||
tags:
|
||||
- nginx
|
||||
- nginx_site_available
|
||||
|
||||
tags:
|
||||
- nginx
|
||||
- nginx_site_enable
|
||||
|
||||
- name: "Place info site"
|
||||
ansible.builtin.copy:
|
||||
|
@ -51,3 +61,6 @@
|
|||
name: nginx
|
||||
state: started
|
||||
enabled: true
|
||||
tags:
|
||||
- nginx
|
||||
- nginx_start_enable
|
||||
|
|
Loading…
Reference in New Issue