mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2025-12-25 00:12:37 +01:00
Apply noqa and fix line lenght limit. ansible-lint production profile (#326)
Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
---
|
||||
k3s_server_location: "/var/lib/rancher/k3s"
|
||||
systemd_dir: "/etc/systemd/system"
|
||||
api_port: 6443
|
||||
k3s_server_location: "/var/lib/rancher/k3s" # noqa var-naming[no-role-prefix]
|
||||
systemd_dir: "/etc/systemd/system" # noqa var-naming[no-role-prefix]
|
||||
api_port: 6443 # noqa var-naming[no-role-prefix]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
k3s_server_location: "/var/lib/rancher/k3s"
|
||||
systemd_dir: "/etc/systemd/system"
|
||||
api_port: 6443
|
||||
kubeconfig: ~/.kube/config.new
|
||||
user_kubectl: true
|
||||
cluster_context: k3s-ansible
|
||||
systemd_dir: "/etc/systemd/system" # noqa var-naming[no-role-prefix]
|
||||
api_port: 6443 # noqa var-naming[no-role-prefix]
|
||||
kubeconfig: ~/.kube/config.new # noqa var-naming[no-role-prefix]
|
||||
user_kubectl: true # noqa var-naming[no-role-prefix]
|
||||
cluster_context: k3s-ansible # noqa var-naming[no-role-prefix]
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
---
|
||||
systemd_dir: /etc/systemd/system
|
||||
systemd_dir: /etc/systemd/system # noqa var-naming[no-role-prefix]
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
---
|
||||
api_port: 6443
|
||||
api_port: 6443 # noqa var-naming[no-role-prefix]
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
---
|
||||
cluster_cidr: "{{ (server_config_yaml | from_yaml)['cluster-cidr'] | default('10.42.0.0/16') }}"
|
||||
service_cidr: "{{ (server_config_yaml | from_yaml)['service-cidr'] | default('10.43.0.0/16') }}"
|
||||
cluster_cidr: "{{ (server_config_yaml | from_yaml)['cluster-cidr'] | default('10.42.0.0/16') }}" # noqa var-naming[no-role-prefix]
|
||||
service_cidr: "{{ (server_config_yaml | from_yaml)['service-cidr'] | default('10.43.0.0/16') }}" # noqa var-naming[no-role-prefix]
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
- name: Enable cgroup via boot commandline if not already enabled
|
||||
ansible.builtin.lineinfile:
|
||||
path: /boot/boot.txt
|
||||
# yamllint disable-line rule:line-length
|
||||
search_string: setenv bootargs console=ttyS1,115200 console=tty0 root=PARTUUID=${uuid} rw rootwait smsc95xx.macaddr="${usbethaddr}"
|
||||
# yamllint disable-line rule:line-length
|
||||
line: setenv bootargs console=ttyS1,115200 console=tty0 root=PARTUUID=${uuid} rw rootwait smsc95xx.macaddr="${usbethaddr}" cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory
|
||||
regexp: '^(setenv bootargs console=ttyS1,115200 console=tty0 root=PARTUUID=\${uuid} rw rootwait smsc95xx.macaddr="\${usbethaddr}")'
|
||||
line: '\1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory'
|
||||
backrefs: true
|
||||
notify: Regenerate bootloader image
|
||||
|
||||
Reference in New Issue
Block a user