pre-flight.yml 768 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ---
  2. - name: Pre-flight checks only.
  3. hosts: workstation.lab.example.com
  4. gather_subset: min
  5. become: no
  6. collections:
  7. - p0f.operators
  8. tasks:
  9. - include_role:
  10. name: check-env
  11. apply:
  12. tags: check
  13. tags: check
  14. - include_role:
  15. name: fix-operators
  16. apply:
  17. tags: fix
  18. tags: fix
  19. - include_role:
  20. name: remove-operators
  21. apply:
  22. tags: remove
  23. loop: "{{ removed_operators }}"
  24. loop_control:
  25. loop_var: role
  26. tags: remove
  27. - include_role:
  28. name: deploy_operators
  29. apply:
  30. tags: deploy
  31. loop: "{{ added_operators }}"
  32. loop_control:
  33. loop_var: role
  34. tags: deploy
  35. # TODO: deploy vscode / codium ?
  36. ...