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.

95 lines
1.9 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. tags:
  31. - bootstrap-os
  32. - resolvconf
  33. - import_tasks: 0070-system-packages.yml
  34. when:
  35. - not dns_late
  36. tags:
  37. - bootstrap-os
  38. - import_tasks: 0080-system-configurations.yml
  39. when:
  40. - not dns_late
  41. tags:
  42. - bootstrap-os
  43. - import_tasks: 0090-etchosts.yml
  44. when:
  45. - not dns_late
  46. tags:
  47. - bootstrap-os
  48. - etchosts
  49. - import_tasks: 0100-dhclient-hooks.yml
  50. when:
  51. - dns_mode != 'none'
  52. - resolvconf_mode == 'host_resolvconf'
  53. - not ansible_os_family in ["CoreOS", "Container Linux by CoreOS"]
  54. tags:
  55. - bootstrap-os
  56. - resolvconf
  57. - import_tasks: 0110-dhclient-hooks-undo.yml
  58. when:
  59. - dns_mode != 'none'
  60. - resolvconf_mode != 'host_resolvconf'
  61. - not ansible_os_family in ["CoreOS", "Container Linux by CoreOS"]
  62. tags:
  63. - bootstrap-os
  64. - resolvconf
  65. # We need to make sure the network is restarted early enough so that docker can later pick up the correct system
  66. # nameservers and search domains
  67. - meta: flush_handlers
  68. - name: Check if we are running inside a Azure VM
  69. stat:
  70. path: /var/lib/waagent/
  71. register: azure_check
  72. when:
  73. - not dns_late
  74. tags:
  75. - bootstrap-os
  76. - import_tasks: 0120-growpart-azure-centos-7.yml
  77. when:
  78. - not dns_late
  79. - azure_check.stat.exists
  80. - ansible_distribution in ["CentOS","RedHat"]
  81. tags:
  82. - bootstrap-os