From 2273824910075834f9a8824939bdbe5bd7fba139 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Thu, 20 Aug 2020 12:23:45 -0500 Subject: [PATCH] Fix linting issues. --- .yamllint | 5 +++++ tasks/kubelet-setup.yml | 1 + tasks/master-setup.yml | 2 ++ tasks/setup-Debian.yml | 1 + 4 files changed, 9 insertions(+) diff --git a/.yamllint b/.yamllint index c9aab08..3a49cd8 100644 --- a/.yamllint +++ b/.yamllint @@ -1,6 +1,11 @@ --- extends: default + rules: line-length: max: 150 level: warning + +ignore: | + .github/stale.yml + .travis.yml diff --git a/tasks/kubelet-setup.yml b/tasks/kubelet-setup.yml index 05a4622..be6f57e 100644 --- a/tasks/kubelet-setup.yml +++ b/tasks/kubelet-setup.yml @@ -24,6 +24,7 @@ line: '{{ kubelet_args_line }}' regexp: '{{ kubelet_args_regexp }}' state: present + mode: 0644 register: kubelet_config_file - name: Reload systemd unit if args were changed. diff --git a/tasks/master-setup.yml b/tasks/master-setup.yml index fd7666d..fffcd39 100644 --- a/tasks/master-setup.yml +++ b/tasks/master-setup.yml @@ -20,12 +20,14 @@ file: path: ~/.kube state: directory + mode: 0755 - name: Symlink the kubectl admin.conf to ~/.kube/conf. file: src: /etc/kubernetes/admin.conf dest: ~/.kube/config state: link + mode: 0644 - name: Configure Flannel networking. command: "{{ item }}" diff --git a/tasks/setup-Debian.yml b/tasks/setup-Debian.yml index 2d07fa5..4a83a58 100644 --- a/tasks/setup-Debian.yml +++ b/tasks/setup-Debian.yml @@ -23,3 +23,4 @@ template: src: apt-preferences-kubernetes.j2 dest: /etc/apt/preferences.d/kubernetes + mode: 0644