1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_resolvconf.git synced 2024-08-16 10:09:52 +02:00
ansible_role_resolvconf/README.md

30 lines
2.8 KiB
Markdown
Raw Normal View History

2021-03-16 20:02:16 +01:00
[![Ansible Galaxy](https://raw.githubusercontent.com/roles-ansible/ansible_role_resolvconf/main/.github/galaxy.svg?sanitize=true)](https://galaxy.ansible.com/do1jlr/resolvconf) [![MIT License](https://raw.githubusercontent.com/roles-ansible/ansible_role_resolvconf/main/.github/license.svg?sanitize=true)](https://github.com/roles-ansible/ansible_role_resolvconf/blob/main/LICENSE)
2021-03-16 19:48:27 +01:00
ansible role resolvconf
=========================
Ansible role to manage the ``/etc/resolv.conf`` file.
Variables
-------------
| Variable | Default Value | Description |
| -------- | ------------- | ----------- |
| ``resolvconf__mode:`` | ``'0644'`` | The file mode for ``/etc/resolv.conf`` |
2021-03-16 20:02:16 +01:00
| ``resolveconf__immutable:`` | ``false`` | Change this to ``true`` to prevent ``/etc/resolv.conf`` to be changed by others |
2021-03-16 19:48:27 +01:00
| ``resolvconf__nameservers: []`` | `` `` | Optionally configure a list of nameservers *(some [examples](https://www.ccc.de/censorship/dns-howto/))* |
| ``resolvconf__domain:`` | `` `` | Optionally set a value for the domain option |
| ``resolvconf__search: []`` | `` `` | Optionally set a list of search domains |
| ``resolvconf__options: []`` | `` `` | Optionally set a list of additional options like ``rotate`` or ``timeout:2`` |
| ``submodules_versioncheck:`` | ``false`` | Run optional simple Versionscheck *(``true`` is recomended)* |
2021-03-04 15:37:38 +01:00
Testing
----------
This role is tested with [these github-action](https://github.com/search?q=topic%3Acheck-ansible+topic%3Agithub-actions+org%3Aroles-ansible&type=Repositories) tests for different versions of differen linux systems. Linting is tested via travis-ci and the [ansible-lint action](https://github.com/marketplace/actions/ansible-lint).
If you want to find out more about our tests, please have a look at the github marketplace.
| test status | Github Marketplace |
| :--------- | :---------------- |
2021-03-16 20:02:16 +01:00
| [![Ansible Lint check](https://github.com/roles-ansible/ansible_role_resolvconf/actions/workflows/ansible-linting-check.yml/badge.svg)](https://github.com/roles-ansible/ansible_role_resolvconf/actions/workflows/ansible-linting-check.yml) | [ansible-lint action](https://github.com/marketplace/actions/ansible-lint) |
| [![Yamllint GitHub Actions](https://github.com/roles-ansible/ansible_role_resolvconf/actions/workflows/yamllint.yaml/badge.svg)](https://github.com/roles-ansible/ansible_role_resolvconf/actions/workflows/yamllint.yaml) | [yamllint github actions](https://github.com/marketplace/actions/yamllint-github-action) |
| [![Galaxy release](https://github.com/roles-ansible/ansible_role_resolvconf/actions/workflows/galaxy.yml/badge.svg)](https://github.com/roles-ansible/ansible_role_resolvconf/actions/workflows/galaxy.yml) | [publish-ansible-role-to-galaxy](https://github.com/marketplace/actions/publish-ansible-role-to-galaxy) |