diff --git a/.github/galaxy.svg b/.github/galaxy.svg index 90acf04..f5e2bad 100644 --- a/.github/galaxy.svg +++ b/.github/galaxy.svg @@ -1,366 +1,95 @@ - - - - - - - image/svg+xml - - - - - - 3D <l3d@c3woc.de> - - - - - MIT License - - - - - - - - - - - - - - - + + + + + + - - - - - - - - MIT - MIT + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - do1jlr.role_name - do1jlr.role_name + + + + + + + + + + + + + + + + + + + diff --git a/.github/workflows/galaxy.yml b/.github/workflows/galaxy.yml new file mode 100644 index 0000000..b5dc0ec --- /dev/null +++ b/.github/workflows/galaxy.yml @@ -0,0 +1,20 @@ +--- +name: Galaxy release + +# yamllint disable-line rule:truthy +on: + push: + branches: ['main'] + release: + types: ['created'] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v2 + - name: galaxy + uses: robertdebock/galaxy-action@1.1.0 + with: + galaxy_api_key: ${{ secrets.galaxy_api_key }} diff --git a/README.md b/README.md index a72ecfb..e9d8b0e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,19 @@ -# ansible_role_template -Template for Ansible roles + 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`` | +| ``resolveconf__immutable:`` | ``false +| ``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)* | Testing ---------- diff --git a/meta/main.yml b/meta/main.yml new file mode 100644 index 0000000..ea8dc47 --- /dev/null +++ b/meta/main.yml @@ -0,0 +1,22 @@ +--- +galaxy_info: + role_name: resolvconf + author: do1jlr + description: Manage your /etc/resolv.conf file. + license: "MIT" + min_ansible_version: 2.8 + github_branch: main + platforms: + - name: Archlinux + versions: all + - name: Debian + versions: all + - name: Ubuntu + versions: all + - name: Fedora + versions: all + galaxy_tags: + - resolv + - resolvconf + - dns +dependencies: [] diff --git a/vars/main.yml b/vars/main.yml index e020881..c658e01 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,4 +1,4 @@ --- # versionscheck -playbook_version_number: 6 # should be a integer +playbook_version_number: 7 # should be a integer playbook_version_path: 'do1jlr.resolvconf.version'