Skip to content

lotusnoir/ansible-system_repo_proxy

Repository files navigation

ansible-system_repo_proxy

Galaxy Role Version GitHub repo size downloads Ansible Quality Score License

Description

Configure proxy on repository

Requirements

none

Role variables

See variables for more details.

With default variables, this role dont change anything on the system. You need to set the config variables like in the exemple in order to start configuration.

Examples

    ---
    - hosts: system_repo_proxy
      become: true
      become_method: sudo
      gather_facts: true
      roles:
        - role: ansible-system_repo_proxy
      vars:
        yum_proxy: "http://squid.exemple.com:3128"
        apt_proxy_file: "/etc/apt/apt.conf.d/01proxy"
        apt_proxy: "https://exemple.com:3142"
        apt_proxy_skip_host: "{{ apt_proxy | urlsplit('hostname') }}"
        apt_proxy_remove:
          - /etc/apt/apt.conf.d/99proxy

License

This project is licensed under Apache License. See LICENSE for more details.

Author Information