Skip to content
  1. Mar 27, 2024
    • Max Gautier's avatar
      Refactor bootstrap-os (#10983) · c58497cd
      Max Gautier authored
      * Remove leftover files for Coreos
      
      Coreos was replaced by flatcar in 058438a2 but the file was copied
      instead of moved.
      
      * Remove workarounds for resolved ansible issues
      
      * boostrap: Use first_found to include per distro
      
      Using directly ID and VARIANT_ID with first_found allow for less manual
      includes.
      Distro "families" are simply handled by symlinks.
      
      * boostrap: don't set ansible_python_interpreter
      
      - Allows users to override the chosen python_interpreter with group_vars
        easily (group_vars have lesser precedence than facts)
      - Allows us to use vars at the task scope to use a virtual env
      
      Ansible python discovery has improved, so those workarounds should not
      be necessary anymore.
      Special workaround for Flatcar, due to upstream ansible not willing to
      support it.
      c58497cd
  2. Jul 05, 2023
  3. Jun 26, 2023
  4. Feb 16, 2023
  5. Nov 15, 2022
  6. Nov 30, 2021
  7. Nov 19, 2021
  8. Sep 10, 2021
  9. Jul 20, 2021
  10. Jul 12, 2021
    • Cristian Calin's avatar
      Move to Ansible 3.4.0 (#7672) · 7516fe14
      Cristian Calin authored
      * Ansible: move to Ansible 3.4.0 which uses ansible-base 2.10.10
      
      * Docs: add a note about ansible upgrade post 2.9.x
      
      * CI: ensure ansible is removed before ansible 3.x is installed to avoid pip failures
      
      * Ansible: use newer ansible-lint
      
      * Fix ansible-lint 5.0.11 found issues
      
      * syntax issues
      * risky-file-permissions
      * var-naming
      * role-name
      * molecule tests
      
      * Mitogen: use 0.3.0rc1 which adds support for ansible 2.10+
      
      * Pin ansible-base to 2.10.11 to get package fix on RHEL8
      7516fe14
  11. Jul 09, 2021
  12. May 25, 2021
  13. Feb 11, 2021
  14. Feb 10, 2021
  15. Jan 29, 2021
  16. Jan 11, 2021
  17. Jan 07, 2021
  18. Oct 21, 2020
  19. Sep 07, 2020
  20. Jun 12, 2020
  21. Apr 09, 2020
    • Denis Kadyshev's avatar
      Proxy fixes (#5869) · 7d1ab337
      Denis Kadyshev authored
      * Fix proxy and module_hotfixes
      
      On CentOS 8 with proxy ansible render inline `proxy` and `module_hotfixes` options.
      
      For example:
      
      `proxy=http://127.0.0.1:3128module_hotfixes=True`
      
      But expected result:
      
      ```
      proxy=http://127.0.0.1:3128
      module_hotfixes=True
      ```
      
      * Use ini_file module for work with ini files
      
      * Prevent duplicates proxy= option in /etc/yum.conf
      
      Module `lineinfile` is weak, use most powerful module `ini_file` and add or remove `proxy=` when `http_proxy` is defined or not.
      7d1ab337
  22. Mar 18, 2020
  23. Mar 14, 2020
  24. Mar 13, 2020
    • dymq's avatar
      Failover for adding proxy when line exists in file (#5751) · e0b76b18
      dymq authored
      The 'regexp' parameter matches last occurrence of a line starting with 'proxy=' and replaces it with the one defined in 'line' parameter. If no match - it works same way as before. This fixes resuming cluster deployments failed after that task (if there was no more than one line starting with 'proxy' in the yum.conf file - this condition should also be reassured with the change introduced here) eg. if they were initiated with Terraform.
      e0b76b18
  25. Dec 09, 2019
    • Etienne Champetier's avatar
      Fixes for CentOS 8 (#5213) · 42702dc1
      Etienne Champetier authored
      
      
      * Fix python3-libselinux installation for RHEL/CentOS 8
      
      In bootstrap-centos.yml we haven't gathered the facts,
      so #5127 couldn't work
      
      Minimum ansible version to run kubespray is 2.7.8,
      so ansible_distribution_major_version is defined an there is no need to default it
      
      Signed-off-by: default avatarEtienne Champetier <champetier.etienne@gmail.com>
      
      * Restart NetworkManager for RHEL/CentOS 8
      
      network.service doesn't exist anymore
       # systemctl status network
       Unit network.service could not be found.
      
      Signed-off-by: default avatarEtienne Champetier <champetier.etienne@gmail.com>
      
      * Add module_hotfixes=True to docker / containerd yum repo config
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1734081
      https://bugzilla.redhat.com/show_bug.cgi?id=1756473
      
      
      Without this setting you end up with the following error:
       # yum install docker-ce
       Failed to set locale, defaulting to C
       Last metadata expiration check: 0:03:21 ago on Thu Sep 26 22:00:05 2019.
       Error:
        Problem: package docker-ce-3:19.03.2-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
         - cannot install the best candidate for the job
         - package containerd.io-1.2.2-3.3.el7.x86_64 is excluded
         - package containerd.io-1.2.2-3.el7.x86_64 is excluded
         - package containerd.io-1.2.4-3.1.el7.x86_64 is excluded
         - package containerd.io-1.2.5-3.1.el7.x86_64 is excluded
         - package containerd.io-1.2.6-3.3.el7.x86_64 is excluded
       (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
      
      Signed-off-by: default avatarEtienne Champetier <champetier.etienne@gmail.com>
      42702dc1
  26. Aug 28, 2019
    • Richard Arends's avatar
      Use python3-libselinux on RHEL8/Centos8 (#5127) · 4d95bb14
      Richard Arends authored
      * Use python3-libselinux on RHEL8/Centos8
      
      * The fact ansible_facts.distribution_major_version is not present on older Ansible version.
      Default it to 0 in when not present and use libselinux-python as package to get current
      default behaviour.
      4d95bb14
  27. Apr 24, 2019
    • MarkusTeufelberger's avatar
      Define and implement specs for bootstrap-os (#4455) · 76db060a
      MarkusTeufelberger authored
      * Add README to bootstrap-os role
      
      * Rework bootstrap-os once more
      
      * Document workarounds for bugs/deficiencies in Ansible modules
      * Unify and document role variables
      * Remove installation of additional packages and repositories
      * Merge Ubuntu and Debian tasks
      * Remove pipelining setting from default playbooks
      * Fix OpenSUSE not running its required tasks
      76db060a
  28. Feb 13, 2019
  29. Feb 12, 2019
  30. Jan 23, 2019
  31. Dec 27, 2018
  32. Dec 11, 2018
  33. Nov 07, 2018
  34. Oct 31, 2018
  35. Sep 26, 2018
  36. Oct 14, 2017
    • abelgana's avatar
      Changre raw execution to use yum module (#1785) · 2972bceb
      abelgana authored
      * Changre raw execution to use yum module
      
      Changed raw exection to use yum module provided by Ansible.
      
      * Replace ansible_ssh_* by ansible_*
      
      Ansible 2.0 has deprecated the “ssh” from ansible_ssh_user, ansible_ssh_host, and ansible_ssh_port to become ansible_user, ansible_host, and ansible_port. If you are using a version of Ansible prior to 2.0, you should continue using the older style variables (ansible_ssh_*). These shorter variables are ignored, without warning, in older versions of Ansible.
      
      I am not sure about the broader impact of this change. But I have seen on the requirements the version required is ansible>=2.4.0.
      
      http://docs.ansible.com/ansible/latest/intro_inventory.html
      2972bceb
  37. May 16, 2017
  38. Apr 20, 2017
  39. Feb 18, 2017