fix(ansible): follow linting suggestions

This commit is contained in:
Michele Cereda
2024-08-18 22:45:11 +02:00
parent 15c6880407
commit 8e600c679c
4 changed files with 7 additions and 5 deletions

View File

@@ -3,5 +3,6 @@
offline: true
warn_list:
- 'role-name[path]'
- 'name[template]' # Jinja templates should only be at the end of 'name' -- oh come on!
- 'role-name[path]' # Avoid using paths when importing roles -- yeah, need for testing
- package-latest

View File

@@ -1,2 +1,3 @@
ansible/playbooks/keybase.register-device.yml no-changed-when
examples/ansible/aws_ec2.yml yaml[comments-indentation]
examples/ansible/ec2.clone-instance.yml args[module]

View File

@@ -12,7 +12,7 @@
amazon.aws.ec2_instance_info:
filters:
"tag:Name": "{{ original_instance_name_tag }}"
"instance-state-name": [ "running" ]
"instance-state-name": ["running"]
register: original_instance_information
- name: Check a running instance with Name tag '{{ original_instance_name_tag }}' has been found
tags:

View File

@@ -424,7 +424,7 @@
amazon.aws.ec2_instance_info:
filters:
"tag:Application": K8S
"instance-state-name": [ "running" ]
"instance-state-name": ["running"]
- name: Clone EC2 instances
vars:
source_instance_id: i-0123456789abcdef0