summaryrefslogtreecommitdiffstats
path: root/distro/tests
diff options
context:
space:
mode:
authorTomas Krizek <tomas.krizek@nic.cz>2020-08-17 14:20:54 +0200
committerTomas Krizek <tomas.krizek@nic.cz>2020-08-17 14:20:54 +0200
commita5e83d9d15e6f22a7228d9854fdac84438735d3d (patch)
tree8301c94cd755617df1698cbdc67cc9e1a1dd9eee /distro/tests
parentdistro/deb: fix symbols for Stretch (diff)
downloadknot-a5e83d9d15e6f22a7228d9854fdac84438735d3d.tar.xz
knot-a5e83d9d15e6f22a7228d9854fdac84438735d3d.zip
distro/tests: fix file permissions set by ansible
Ansible switched default file perm to 600 from more permissive 666. Add file mode explicitly to avoid issues.
Diffstat (limited to 'distro/tests')
-rw-r--r--distro/tests/ansible-roles/knot_dns/tasks/configure_zone.yaml1
-rw-r--r--distro/tests/ansible-roles/obs_repos/tasks/CentOS.yaml1
-rw-r--r--distro/tests/ansible-roles/obs_repos/tasks/Debian.yaml1
-rw-r--r--distro/tests/ansible-roles/obs_repos/tasks/Fedora.yaml1
4 files changed, 4 insertions, 0 deletions
diff --git a/distro/tests/ansible-roles/knot_dns/tasks/configure_zone.yaml b/distro/tests/ansible-roles/knot_dns/tasks/configure_zone.yaml
index 704181a3a..c6cce014b 100644
--- a/distro/tests/ansible-roles/knot_dns/tasks/configure_zone.yaml
+++ b/distro/tests/ansible-roles/knot_dns/tasks/configure_zone.yaml
@@ -2,6 +2,7 @@
- name: create example.com zone
copy:
dest: /etc/knot/example.com.zone
+ mode: 0644
content: |
$ORIGIN example.com.
$TTL 3600
diff --git a/distro/tests/ansible-roles/obs_repos/tasks/CentOS.yaml b/distro/tests/ansible-roles/obs_repos/tasks/CentOS.yaml
index 6d603070c..d777cbfc2 100644
--- a/distro/tests/ansible-roles/obs_repos/tasks/CentOS.yaml
+++ b/distro/tests/ansible-roles/obs_repos/tasks/CentOS.yaml
@@ -8,4 +8,5 @@
get_url:
url: "{{ obs_repofile_url }}"
dest: /etc/yum.repos.d/home:CZ-NIC:{{ item }}.repo
+ mode: 0644
with_items: "{{ repos }}"
diff --git a/distro/tests/ansible-roles/obs_repos/tasks/Debian.yaml b/distro/tests/ansible-roles/obs_repos/tasks/Debian.yaml
index db3d8e5c1..9d70fd7df 100644
--- a/distro/tests/ansible-roles/obs_repos/tasks/Debian.yaml
+++ b/distro/tests/ansible-roles/obs_repos/tasks/Debian.yaml
@@ -3,6 +3,7 @@
get_url:
url: https://gitlab.nic.cz/knot/knot-resolver-release/raw/master/cznic-obs.gpg.asc
dest: /etc/apt/trusted.gpg.d/cznic-obs.gpg.asc
+ mode: 0644
- name: Add OBS repo(s)
apt_repository:
diff --git a/distro/tests/ansible-roles/obs_repos/tasks/Fedora.yaml b/distro/tests/ansible-roles/obs_repos/tasks/Fedora.yaml
index b004f36c0..8e1bbba98 100644
--- a/distro/tests/ansible-roles/obs_repos/tasks/Fedora.yaml
+++ b/distro/tests/ansible-roles/obs_repos/tasks/Fedora.yaml
@@ -3,4 +3,5 @@
get_url:
url: "{{ obs_repofile_url }}"
dest: "/etc/yum.repos.d/home:CZ-NIC:{{ item }}.repo"
+ mode: 0644
with_items: "{{ repos }}"