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.

115 lines
2.3 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  1. ---
  2. # Disable swap
  3. - import_tasks: 0010-swapoff.yml
  4. when:
  5. - not dns_late
  6. - disable_swap
  7. - import_tasks: 0020-verify-settings.yml
  8. when:
  9. - not dns_late
  10. tags:
  11. - asserts
  12. - import_tasks: 0040-set_facts.yml
  13. tags:
  14. - resolvconf
  15. - facts
  16. - import_tasks: 0050-create_directories.yml
  17. when:
  18. - not dns_late
  19. - import_tasks: 0060-resolvconf.yml
  20. when:
  21. - dns_mode != 'none'
  22. - resolvconf_mode == 'host_resolvconf'
  23. - systemd_resolved_enabled.rc != 0
  24. - not is_fedora_coreos
  25. tags:
  26. - bootstrap-os
  27. - resolvconf
  28. - import_tasks: 0061-systemd-resolved.yml
  29. when:
  30. - dns_mode != 'none'
  31. - resolvconf_mode == 'host_resolvconf'
  32. - systemd_resolved_enabled.rc == 0
  33. tags:
  34. - bootstrap-os
  35. - resolvconf
  36. - import_tasks: 0062-networkmanager-unmanaged-devices.yml
  37. tags:
  38. - bootstrap-os
  39. - import_tasks: 0063-networkmanager-dns.yml
  40. when:
  41. - dns_mode != 'none'
  42. - resolvconf_mode == 'host_resolvconf'
  43. - is_fedora_coreos
  44. tags:
  45. - bootstrap-os
  46. - resolvconf
  47. - import_tasks: 0070-system-packages.yml
  48. when:
  49. - not dns_late
  50. tags:
  51. - bootstrap-os
  52. - import_tasks: 0080-system-configurations.yml
  53. when:
  54. - not dns_late
  55. tags:
  56. - bootstrap-os
  57. - import_tasks: 0090-etchosts.yml
  58. when:
  59. - not dns_late
  60. tags:
  61. - bootstrap-os
  62. - etchosts
  63. - import_tasks: 0100-dhclient-hooks.yml
  64. when:
  65. - dns_mode != 'none'
  66. - resolvconf_mode == 'host_resolvconf'
  67. - not ansible_os_family in ["Flatcar Container Linux by Kinvolk"]
  68. tags:
  69. - bootstrap-os
  70. - resolvconf
  71. - import_tasks: 0110-dhclient-hooks-undo.yml
  72. when:
  73. - dns_mode != 'none'
  74. - resolvconf_mode != 'host_resolvconf'
  75. - not ansible_os_family in ["Flatcar Container Linux by Kinvolk"]
  76. tags:
  77. - bootstrap-os
  78. - resolvconf
  79. # We need to make sure the network is restarted early enough so that docker can later pick up the correct system
  80. # nameservers and search domains
  81. - name: Flush handlers
  82. meta: flush_handlers
  83. - name: Check if we are running inside a Azure VM
  84. stat:
  85. path: /var/lib/waagent/
  86. get_attributes: no
  87. get_checksum: no
  88. get_mime: no
  89. register: azure_check
  90. when:
  91. - not dns_late
  92. tags:
  93. - bootstrap-os
  94. - import_tasks: 0120-growpart-azure-centos-7.yml
  95. when:
  96. - not dns_late
  97. - azure_check.stat.exists
  98. - ansible_os_family == "RedHat"
  99. tags:
  100. - bootstrap-os