lacroix42 icon

roles/prereqs/tasks/main.yml

lacroix42 | PRO | 01/08/17 03:19:33 PM UTC | 0 ⭐ | 214 👁️ | Never ⏰ | []
YAML |

630 B

|

None

|

0 👍

/

0 👎

---
 
- include: vars/main.yml
 
- name: Warn if not the OS or version we expect
  pause:
    prompt: "You need to be running CentOS or RHEL 7 for this playbook to work."
  when: ansible_distribution != "CentOS" or ansible_distribution_major_version != "7"
 
# EPEL breaks certain backward compatible things in OStack (liberty). We want it removed.
- name: Remove EPEL
  yum_repository:
    name: epel
    state: absent
 
- name: Update the machine to most current version
  yum:
    name: '*'
    state: latest
 
- name: Install the personal pre-requisite packages
  yum:
    name: "{{ item }}"
  with_items: personal_preferences

Comments