lacroix42

roles/prereqs/tasks/main.yml

Jan 8th, 2017
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.63 KB | None | 0 0
  1. ---
  2.  
  3. - include: vars/main.yml
  4.  
  5. - name: Warn if not the OS or version we expect
  6.   pause:
  7.     prompt: "You need to be running CentOS or RHEL 7 for this playbook to work."
  8.   when: ansible_distribution != "CentOS" or ansible_distribution_major_version != "7"
  9.  
  10. # EPEL breaks certain backward compatible things in OStack (liberty). We want it removed.
  11. - name: Remove EPEL
  12.   yum_repository:
  13.     name: epel
  14.     state: absent
  15.  
  16. - name: Update the machine to most current version
  17.   yum:
  18.     name: '*'
  19.     state: latest
  20.  
  21. - name: Install the personal pre-requisite packages
  22.   yum:
  23.     name: "{{ item }}"
  24.   with_items: personal_preferences
Advertisement
Add Comment
Please, Sign In to add comment