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.

18 lines
495 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. raw: yum -y install libselinux-python