blob: 913f1ef415a453be51fde3ae1f553941b225b2be [file] [log] [blame]
---
# tasks file for apigee-opdk-setup-os
- name: Configure AWS AMI OS package manager repositories for Apigee
shell: "/usr/bin/yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional"
when: ansible_bios_version | lower | search('amazon') and ansible_os_family | lower == 'redhat' and ansible_distribution_major_version | version_compare('6', '>')
# TODO: Look up the ansible_distribution name for RHEL systems
#- name: If using RHEL then register RHEL on RHN
# shell: "subscription-manager register --username={{ rhel_user_name }} --password={{ rhel_password }} --auto-attach"
# when: ansible_bios_version | lower | search('amazon') and ansible_os_family | lower == 'redhat' and ansible_distribution_major_version | version_compare('7', '>')
- name: Yum clean
become: yes
shell: yum clean all
- name: Do not use proxy definitions
include: with_no_proxy.yml
when: http_proxy is not defined and https_proxy is not defined
- name: Use proxy definitions
include: with_proxy.yml
when: http_proxy is defined and https_proxy is defined