An Ansible deployment to validate ansible roles for Continuous Integration.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.9KB

  1. # Copyright 2018 Red Hat, Inc.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  11. # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  12. # License for the specific language governing permissions and limitations
  13. # under the License.
  14. ---
  15. - name: Bootstrap nodepool hosts
  16. hosts: nodepool:!disabled
  17. tasks:
  18. # NOTE(pabelanger): Because of ordering issues create the required home
  19. # directory first.
  20. - name: Create nodepool user directories
  21. include_role:
  22. name: windmill.nodepool
  23. vars:
  24. nodepool_task_manager:
  25. - pre
  26. - name: Bootstrap nodepool-builder
  27. hosts: nodepool-builder:!disabled
  28. tasks:
  29. - name: Setup windmill.sudoers role
  30. include_role:
  31. name: windmill.sudoers
  32. - name: Setup windmill.ssh role
  33. include_role:
  34. name: windmill.ssh
  35. - name: Setup windmill.diskimage-builder role
  36. include_role:
  37. name: windmill.diskimage-builder
  38. - name: Install nodepool elements directory
  39. become: true
  40. synchronize:
  41. delete: true
  42. dest: /etc/nodepool/
  43. perms: true
  44. recursive: true
  45. rsync_opts:
  46. - '--chown=nodepool:nodepool'
  47. src: "{{ windmill_config_git_dest }}/nodepool/elements"
  48. - name: Bootstrap nodepool hosts
  49. hosts: nodepool:!disabled
  50. tasks:
  51. - name: Setup windmill.openstacksdk role
  52. include_role:
  53. name: windmill.openstacksdk
  54. - name: Setup windmill.nodepool role
  55. include_role:
  56. name: windmill.nodepool
  57. - name: Setup windmill.logrotate role
  58. include_role:
  59. name: windmill.logrotate