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.

29 lines
659 B

  1. ---
  2. - name: Check presence of fastestmirror.conf
  3. stat:
  4. path: /etc/yum/pluginconf.d/fastestmirror.conf
  5. register: fastestmirror
  6. # fastestmirror plugin actually slows down Ansible deployments
  7. - name: Disable fastestmirror plugin
  8. lineinfile:
  9. dest: /etc/yum/pluginconf.d/fastestmirror.conf
  10. regexp: "^enabled=.*"
  11. line: "enabled=0"
  12. state: present
  13. when: fastestmirror.stat.exists
  14. - name: Install packages requirements for bootstrap
  15. yum:
  16. name: "{{ packages }}"
  17. state: present
  18. vars:
  19. packages:
  20. - libselinux-python
  21. - epel-release
  22. - name: Install pip for bootstrap
  23. yum:
  24. name: python-pip
  25. state: present