File tree Expand file tree Collapse file tree 1 file changed +32
-33
lines changed
Expand file tree Collapse file tree 1 file changed +32
-33
lines changed Original file line number Diff line number Diff line change @@ -198,39 +198,38 @@ Create a new playbook or update an existing on to apply the roles:
198198.. code-block :: yaml
199199 :caption : $KAYOBE_CONFIG_PATH/ansible/host-configure.yml
200200
201- ---
202- - hosts : iommu
203- tags :
204- - iommu
205- tasks :
206- - import_role :
207- name : stackhpc.linux.iommu
208- handlers :
209- - name : reboot
210- set_fact :
211- kayobe_needs_reboot : true
212-
213- - hosts : vgpu
214- tags :
215- - vgpu
216- tasks :
217- - import_role :
218- name : stackhpc.linux.vgpu
219- handlers :
220- - name : reboot
221- set_fact :
222- kayobe_needs_reboot : true
223-
224- - name : Reboot when required
225- hosts : iommu:vgpu
226- tags :
227- - reboot
228- tasks :
229- - name : Reboot
230- reboot :
231- reboot_timeout : 3600
232- become : true
233- when : kayobe_needs_reboot | default(false) | bool
201+ ---
202+ - hosts : iommu
203+ tags :
204+ - iommu
205+ tasks :
206+ - import_role :
207+ name : stackhpc.linux.iommu
208+ handlers :
209+ - name : reboot
210+ set_fact :
211+ kayobe_needs_reboot : true
212+
213+ - hosts : vgpu
214+ tags :
215+ - vgpu
216+ tasks :
217+ - import_role :
218+ name : stackhpc.linux.vgpu
219+ handlers :
220+ - name : reboot
221+ set_fact :
222+ kayobe_needs_reboot : true
223+ - name : Reboot when required
224+ hosts : iommu:vgpu
225+ tags :
226+ - reboot
227+ tasks :
228+ - name : Reboot
229+ reboot :
230+ reboot_timeout : 3600
231+ become : true
232+ when : kayobe_needs_reboot | default(false) | bool
234233
235234 Ansible Inventory Configuration
236235-------------------------------
You can’t perform that action at this time.
0 commit comments