Skip to content

lotusnoir/ansible-system_resolv

Repository files navigation

ansible-system_resolv

Galaxy Role Version GitHub repo size downloads Ansible Quality Score License

Description

Configure resolv.conf

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_resolv
      become: true
      become_method: sudo
      gather_facts: true
      roles:
        - role: ansible-system_resolv
      vars:
        resolv_resolvconf_remove: true
        resolv_nameservers:
          - "127.0.0.1"
          - "10.0.0.1"
          - "10.0.0.2"
        resolv_domain: "example.com"
        resolv_search:
          - "example.com"
        resolv_options:
          - "timeout:2"
          - "attempts:1"
          - "rotate"

License

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

Author Information