Skip to content

Commit

Permalink
Easy win yamllints
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Hanafin authored and Daemonslayer2048 committed Jul 26, 2024
1 parent 7c3e47b commit f84d647
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions roles/rke2/molecule/rocky-89/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ provisioner:
inventory:
hosts:
rke2_cluster:
children:
children:
rke2_servers:
vars:
group_rke2_config:
Expand All @@ -57,4 +57,4 @@ provisioner:
- host1Label=true

verifier:
name: ansible
name: ansible
4 changes: 2 additions & 2 deletions roles/rke2/molecule/rocky-94/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ provisioner:
inventory:
hosts:
rke2_cluster:
children:
children:
rke2_servers:
vars:
group_rke2_config:
Expand All @@ -57,4 +57,4 @@ provisioner:
- host1Label=true

verifier:
name: ansible
name: ansible
4 changes: 2 additions & 2 deletions roles/rke2/molecule/sles-15/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ provisioner:
inventory:
hosts:
rke2_cluster:
children:
children:
rke2_servers:
vars:
group_rke2_config:
Expand All @@ -57,4 +57,4 @@ provisioner:
- host1Label=true

verifier:
name: ansible
name: ansible
4 changes: 2 additions & 2 deletions roles/rke2/molecule/template/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
hosts: all
gather_facts: true
pre_tasks:
- name: Set api_server_host
- name: Set api_server_host
ansible.builtin.set_fact:
rke2_kubernetes_api_server_host: "{{ hostvars[groups['rke2_servers'][0]].ansible_host }}"
roles:
- role: rke2
become: true
become: true
4 changes: 2 additions & 2 deletions roles/rke2/molecule/template/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
default_aws_profile: "{{ lookup('env', 'AWS_PROFILE') }}"
default_boot_wait_seconds: 120
default_instance_type: t2.medium
default_key_inject_method: cloud-init # valid values: [cloud-init, ec2]
default_key_inject_method: cloud-init # valid values: [cloud-init, ec2]
default_key_name: "molecule-{{ run_config.run_id }}"
default_private_key_path: "{{ lookup('env', 'MOLECULE_EPHEMERAL_DIRECTORY') }}/id_rsa"
default_public_key_path: "{{ default_private_key_path }}.pub"
Expand Down Expand Up @@ -330,4 +330,4 @@

- name: Wait for boot process to finish
ansible.builtin.pause:
seconds: "{{ platforms | map(attribute='boot_wait_seconds') | max }}"
seconds: "{{ platforms | map(attribute='boot_wait_seconds') | max }}"
4 changes: 2 additions & 2 deletions roles/rke2/molecule/template/destroy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Platform settings handling
default_aws_profile: "{{ lookup('env', 'AWS_PROFILE') }}"
default_key_inject_method: cloud-init # valid values: [cloud-init, ec2]
default_key_inject_method: cloud-init # valid values: [cloud-init, ec2]
default_key_name: "molecule-{{ run_config.run_id }}"
default_security_group_name: "molecule-{{ run_config.run_id }}"

Expand Down Expand Up @@ -140,4 +140,4 @@
loop_control:
index_var: index
label: "{{ item.name }}"
when: item.key_inject_method == "ec2"
when: item.key_inject_method == "ec2"
2 changes: 1 addition & 1 deletion roles/rke2/molecule/template/requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
collections:
- name: ansible.utils
- name: amazon.aws
- name: community.crypto
- name: community.crypto
4 changes: 2 additions & 2 deletions roles/rke2/molecule/ubuntu-2204/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ provisioner:
inventory:
hosts:
rke2_cluster:
children:
children:
rke2_servers:
vars:
group_rke2_config:
Expand All @@ -57,4 +57,4 @@ provisioner:
- host1Label=true

verifier:
name: ansible
name: ansible
4 changes: 2 additions & 2 deletions roles/rke2/molecule/ubuntu-2404/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ provisioner:
inventory:
hosts:
rke2_cluster:
children:
children:
rke2_servers:
vars:
group_rke2_config:
Expand All @@ -57,4 +57,4 @@ provisioner:
- host1Label=true

verifier:
name: ansible
name: ansible

0 comments on commit f84d647

Please sign in to comment.