Skip to content

Commit

Permalink
fix: yamllint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hiteshnayak305 committed Dec 6, 2024
1 parent 00d848c commit 1d8c505
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions roles/k8s_cluster/tasks/01_master_init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ansible.builtin.file:
path: "/home/{{ kubernetes_user }}/.kube"
state: directory
mode: 0755
mode: "0755"
owner: "{{ kubernetes_user }}"
group: "{{ kubernetes_user }}"

Expand Down Expand Up @@ -32,7 +32,7 @@
remote_src: true
owner: "{{ kubernetes_user }}"
group: "{{ kubernetes_user }}"
mode: 0600
mode: "0600"
when: not result.stat.exists

- name: Copies config to user's local
Expand All @@ -50,7 +50,7 @@
path: /home/hitesh/.kube/config
owner: hitesh
group: hitesh
mode: 0600
mode: "0600"
when: not result.stat.exists

- name: Get the cert for joining the master nodes
Expand Down
4 changes: 2 additions & 2 deletions roles/k8s_cluster/tasks/02_master_join.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
ansible.builtin.copy:
src: "/home/{{ kubernetes_user }}/nfs/ssd_0/kubernetes_master_join_command"
dest: "{{ k8s_cluster_tmpdir }}/kubernetes_master_join_command"
mode: 0777
mode: "0777"
remote_src: true
when: not cluster_crt.stat.exists and join_command.stat.exists

Expand All @@ -34,5 +34,5 @@
remote_src: true
owner: "{{ kubernetes_user }}"
group: "{{ kubernetes_user }}"
mode: 0644
mode: "0644"
when: not cluster_crt.stat.exists and join_command.stat.exists
2 changes: 1 addition & 1 deletion roles/k8s_cluster/tasks/03_worker_join.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
ansible.builtin.copy:
src: "/home/{{ kubernetes_user }}/nfs/ssd_0/kubernetes_join_command"
dest: "{{ k8s_cluster_tmpdir }}/kubernetes_join_command"
mode: 0777
mode: "0777"
remote_src: true
when: not cluster_crt.stat.exists and join_command.stat.exists

Expand Down
6 changes: 3 additions & 3 deletions roles/nginx_proxy/tasks/02_configure_proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
dest: "{{ nginx_proxy_available_modules_config_file_path }}"
owner: "root"
group: "root"
mode: 0755
mode: "0755"
state: "directory"

- name: Install custom config file
Expand All @@ -13,7 +13,7 @@
dest: "{{ nginx_proxy_available_modules_config_file_path }}/{{ nginx_proxy_nginx_domain }}"
owner: "root"
group: "root"
mode: 0755
mode: "0755"
register: config0

- name: Disable default http config file
Expand All @@ -28,7 +28,7 @@
dest: "{{ nginx_proxy_enabled_modules_config_file_path }}/{{ nginx_proxy_nginx_domain }}.conf"
owner: "root"
group: "root"
mode: 0755
mode: "0755"
state: link
register: config2

Expand Down
2 changes: 1 addition & 1 deletion roles/utility/tasks/set_hosts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
dest: "{{ hosts_file_path }}"
owner: root
group: root
mode: 0644
mode: "0644"
register: installed_hosts

- name: Reboot Machine
Expand Down
4 changes: 2 additions & 2 deletions roles/utility/tasks/set_htop_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
dest: "{{ htop_config_file_path }}"
owner: "{{ item }}"
group: "{{ item }}"
mode: 0700
mode: "0700"
state: "directory"
with_items: "{{ htop_users }}"

Expand All @@ -18,6 +18,6 @@
dest: "{{ htop_config_file_path }}/htoprc"
owner: "{{ item }}"
group: "{{ item }}"
mode: 0664
mode: "0664"
register: installed_hosts
with_items: "{{ htop_users }}"
2 changes: 1 addition & 1 deletion roles/utility/tasks/set_netplan_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
dest: /etc/netplan/00-installer-config.yaml
owner: root
group: root
mode: 0600
mode: "0600"
register: changed_netplan

- name: generate netplan config
Expand Down

0 comments on commit 1d8c505

Please sign in to comment.