-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #166 from l00d3r/master
Fix all non line-length related ansible linting errors
- Loading branch information
Showing
13 changed files
with
146 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
- name: Install the PowerDNS Recursor | ||
pkgng: | ||
community.general.packaging.os.pkgng: | ||
name: "{{ pdns_rec_package_name }}" | ||
state: present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,40 @@ | ||
--- | ||
|
||
- block: | ||
|
||
- name: Set package version facts | ||
when: pdns_rec_package_version | length > 0 | ||
block: | ||
- name: Prefix the version of the PowerDNS Recursor package with the correct separator on RedHat | ||
set_fact: | ||
_pdns_rec_package_version: "-{{ pdns_rec_package_version }}" | ||
ansible.builtin.set_fact: | ||
_pdns_rec_package_version: -{{ pdns_rec_package_version }} | ||
when: ansible_os_family == 'RedHat' | ||
|
||
- name: Prefix the version of the PowerDNS Recursor package with the correct separator on Debian | ||
set_fact: | ||
_pdns_rec_package_version: "={{ pdns_rec_package_version }}" | ||
ansible.builtin.set_fact: | ||
_pdns_rec_package_version: ={{ pdns_rec_package_version }} | ||
when: ansible_os_family == 'Debian' | ||
|
||
when: "pdns_rec_package_version | length > 0" | ||
|
||
- name: Install the PowerDNS Recursor | ||
package: | ||
ansible.builtin.package: | ||
name: "{{ pdns_rec_package_name }}{{ _pdns_rec_package_version | default('') }}" | ||
state: present | ||
|
||
- name: Install PowerDNS Recursor debug symbols | ||
package: | ||
ansible.builtin.package: | ||
name: "{{ pdns_rec_debug_symbols_package_name }}{{ _pdns_rec_package_version | default('') }}" | ||
state: present | ||
when: pdns_rec_install_debug_symbols_package | ||
|
||
- block: | ||
- name: Get version from binaries | ||
block: | ||
- name: Obtain pdns version string | ||
shell: | | ||
ansible.builtin.shell: | | ||
set -o pipefail | ||
{{ pdns_rec_bin_name }} --version 2>&1 | awk '/PowerDNS Recursor / {print $6}' | ||
args: | ||
executable: /bin/bash | ||
register: _pdns_rec_ver_output | ||
changed_when: false | ||
|
||
- name: Set pdns version | ||
set_fact: | ||
ansible.builtin.set_fact: | ||
_pdns_rec_version: "{{ _pdns_rec_ver_output['stdout'] | regex_replace('-[.\\d\\w]+$', '') }}" | ||
when: not ansible_check_mode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,37 @@ | ||
--- | ||
|
||
- name: Install gnupg | ||
package: | ||
ansible.builtin.package: | ||
name: gnupg | ||
state: present | ||
|
||
- name: Install apt-transport-https | ||
package: | ||
ansible.builtin.package: | ||
name: apt-transport-https | ||
state: present | ||
|
||
- name: Import the PowerDNS Recursor APT Repository key | ||
apt_key: | ||
ansible.builtin.apt_key: | ||
url: "{{ pdns_rec_install_repo['gpg_key'] }}" | ||
id: "{{ pdns_rec_install_repo['gpg_key_id'] | default('') }}" | ||
state: present | ||
register: _pdns_rec_apt_key | ||
|
||
- name: Add the PowerDNS Recursor APT Repository | ||
apt_repository: | ||
ansible.builtin.apt_repository: | ||
filename: "{{ pdns_rec_install_repo['name'] }}" | ||
repo: "{{ pdns_rec_install_repo['apt_repo'] }}" | ||
state: present | ||
register: _pdns_rec_apt_repo | ||
|
||
- name: Update the APT cache | ||
apt: | ||
update_cache: yes | ||
when: "_pdns_rec_apt_key.changed or _pdns_rec_apt_repo.changed" | ||
ansible.builtin.apt: | ||
update_cache: true | ||
when: _pdns_rec_apt_key.changed or _pdns_rec_apt_repo.changed | ||
|
||
- name: Pin the PowerDNS Recursor APT Repository | ||
template: | ||
ansible.builtin.template: | ||
src: pdns-recursor.pin.j2 | ||
dest: /etc/apt/preferences.d/pdns-recursor | ||
owner: root | ||
group: root | ||
mode: 0644 | ||
mode: "0644" |
Oops, something went wrong.