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.4 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
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. # This is run before bin_dir is pinned because these tasks are run on localhost
  13. - import_tasks: 0030-pre_upgrade.yml
  14. run_once: true
  15. when:
  16. - not dns_late
  17. tags:
  18. - upgrade
  19. - import_tasks: 0040-set_facts.yml
  20. tags:
  21. - resolvconf
  22. - facts
  23. - import_tasks: 0050-create_directories.yml
  24. when:
  25. - not dns_late
  26. - import_tasks: 0060-resolvconf.yml
  27. when:
  28. - dns_mode != 'none'
  29. - resolvconf_mode == 'host_resolvconf'
  30. - systemd_resolved_enabled.rc != 0
  31. - not is_fedora_coreos
  32. tags:
  33. - bootstrap-os
  34. - resolvconf
  35. - import_tasks: 0061-systemd-resolved.yml
  36. when:
  37. - dns_mode != 'none'
  38. - resolvconf_mode == 'host_resolvconf'
  39. - systemd_resolved_enabled.rc == 0
  40. tags:
  41. - bootstrap-os
  42. - resolvconf
  43. - import_tasks: 0062-networkmanager.yml
  44. when:
  45. - dns_mode != 'none'
  46. - resolvconf_mode == 'host_resolvconf'
  47. - is_fedora_coreos
  48. tags:
  49. - bootstrap-os
  50. - resolvconf
  51. - import_tasks: 0070-system-packages.yml
  52. when:
  53. - not dns_late
  54. tags:
  55. - bootstrap-os
  56. - import_tasks: 0080-system-configurations.yml
  57. when:
  58. - not dns_late
  59. tags:
  60. - bootstrap-os
  61. - import_tasks: 0090-etchosts.yml
  62. when:
  63. - not dns_late
  64. tags:
  65. - bootstrap-os
  66. - etchosts
  67. - import_tasks: 0100-dhclient-hooks.yml
  68. when:
  69. - dns_mode != 'none'
  70. - resolvconf_mode == 'host_resolvconf'
  71. - not ansible_os_family in ["Flatcar Container Linux by Kinvolk"]
  72. tags:
  73. - bootstrap-os
  74. - resolvconf
  75. - import_tasks: 0110-dhclient-hooks-undo.yml
  76. when:
  77. - dns_mode != 'none'
  78. - resolvconf_mode != 'host_resolvconf'
  79. - not ansible_os_family in ["Flatcar Container Linux by Kinvolk"]
  80. tags:
  81. - bootstrap-os
  82. - resolvconf
  83. # We need to make sure the network is restarted early enough so that docker can later pick up the correct system
  84. # nameservers and search domains
  85. - meta: flush_handlers
  86. - name: Check if we are running inside a Azure VM
  87. stat:
  88. path: /var/lib/waagent/
  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_distribution in ["CentOS","RedHat","OracleLinux"]
  99. tags:
  100. - bootstrap-os