| --- | 
 | - name: Yum update with proxy | 
 |   yum: | 
 |     name: '*' | 
 |     state: latest | 
 |   environment: | 
 |     http_proxy: "{{ http_proxy }}" | 
 |     https_proxy: "{{ https_proxy }}" | 
 |     no_proxy: "{{ no_proxy }}" | 
 |  | 
 | - name: Update basic yum os packages with proxy | 
 |   become: yes | 
 |   yum: | 
 |     name: "{{ item }}" | 
 |     state: present | 
 |   with_items: "{{ yum_packages }}" | 
 |   environment: | 
 |     http_proxy: "{{ http_proxy }}" | 
 |     https_proxy: "{{ https_proxy }}" | 
 |     no_proxy: "{{ no_proxy }}" | 
 |  | 
 | - name: Start rngd service | 
 |   service: | 
 |     name: rngd | 
 |     enabled: yes | 
 |     state: started | 
 |  | 
 | - name: Update vm.swappiness | 
 |   become: yes | 
 |   sysctl: | 
 |     name: vm.swappiness | 
 |     value: '{{ vm_swappiness }}' | 
 |     state: present | 
 |  | 
 | - name: Disable Default IPV6 | 
 |   become: yes | 
 |   shell: "sysctl -w net.ipv6.conf.default.disable_ipv6=1" | 
 |   tags: ['ipv6'] | 
 |  | 
 | - name: Disable All IPV6 | 
 |   become: yes | 
 |   shell: "sysctl -w net.ipv6.conf.all.disable_ipv6=1" | 
 |   tags: ['ipv6'] | 
 |  | 
 | - name: Update for apigee installation environment | 
 |   become: yes | 
 |   lineinfile: | 
 |     dest: /etc/environment | 
 |     regexp: "^export CONTINUE_ON_WARNING=" | 
 |     line: 'export CONTINUE_ON_WARNING={{ apigee_continue_on_warning }}' | 
 |     backup: yes | 
 |  | 
 | - name: Download pip package manager with proxy | 
 |   become: yes | 
 |   tags: ['pip-manager'] | 
 |   get_url: | 
 |     url: https://bootstrap.pypa.io/get-pip.py | 
 |     dest: /tmp/get-pip.py | 
 |   when: pip_conf_dir is not defined | 
 |   environment: | 
 |     http_proxy: "{{ http_proxy }}" | 
 |     https_proxy: "{{ https_proxy }}" | 
 |     no_proxy: "{{ no_proxy }}" | 
 |  | 
 | - name: Install pip package manager with proxy | 
 |   become: yes | 
 |   tags: ['pip-manager'] | 
 |   shell: python /tmp/get-pip.py | 
 |   when: pip_conf_dir is not defined | 
 |   environment: | 
 |     http_proxy: "{{ http_proxy }}" | 
 |     https_proxy: "{{ https_proxy }}" | 
 |     no_proxy: "{{ no_proxy }}" | 
 |  | 
 | - name: Update pip | 
 |   become: yes | 
 |   pip: | 
 |     name: pip | 
 |     state: latest | 
 |   environment: | 
 |     http_proxy: "{{ http_proxy }}" | 
 |     https_proxy: "{{ https_proxy }}" | 
 |     no_proxy: "{{ no_proxy }}" | 
 |  | 
 | - name: Update python packages with no proxy | 
 |   become: yes | 
 |   pip: | 
 |     name: '{{ item }}' | 
 |     state: present | 
 |   with_items: "{{ pip_packages }}" | 
 |   environment: | 
 |     http_proxy: "{{ http_proxy }}" | 
 |     https_proxy: "{{ https_proxy }}" | 
 |     no_proxy: "{{ no_proxy }}" |