Skip to content

Commit a9b6d62

Browse files
committed
fix: Update quotes in YAML files for consistency
Fixed inconsistent usage of single and double quotes in YAML files for better readability and maintainability.
1 parent 5dba589 commit a9b6d62

File tree

6 files changed

+25
-27
lines changed

6 files changed

+25
-27
lines changed

.github/workflows/01_lint_me.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
DEFAULT_BRANCH: ${{ github.ref_name }}
4646
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4747
VALIDATE_ALL_CODEBASE: ${{ github.event_name != 'pull_request' }}
48-
FILTER_REGEX_EXCLUDE: '.*extra/.*'
48+
FILTER_REGEX_EXCLUDE: ".*extra/.*"
4949
VALIDATE_JSCPD: false
5050
VALIDATE_TERRAGRUNT: false
5151
VALIDATE_GITLEAKS: false

extra/playbooks/provision_alma8_variables.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,3 @@ gpgkey:
141141
state: present
142142
- url: https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux-8
143143
state: present
144-

extra/playbooks/provision_oracle9_variables.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,3 @@ kernel_parameters:
131131
- key: "fsck.repair"
132132
value: "yes"
133133
state: present
134-

extra/playbooks/provision_rhel.yaml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@
3939
tags:
4040
- assert
4141
- name: assert_root_partition_has_16_GB_of_free_space
42-
ansible.builtin.assert: {that: item.mount == '/' or item.size_available > 17179869184}
43-
loop: '{{ ansible_mounts }}'
42+
ansible.builtin.assert:
43+
{ that: item.mount == '/' or item.size_available > 17179869184 }
44+
loop: "{{ ansible_mounts }}"
4445
ignore_errors: false
4546
when: item.mount == '/'
4647
register: freespace
@@ -141,7 +142,7 @@
141142
changed_when: true
142143
- name: install_extra_groups
143144
ansible.builtin.package:
144-
name: '{{ item }}'
145+
name: "{{ item }}"
145146
state: present
146147
loop: "{{ yum_extra_groups }}"
147148
retries: "{{ retries_count }}"
@@ -152,7 +153,7 @@
152153
# let's install extra packages
153154
- name: install_extra_packages
154155
ansible.builtin.package:
155-
name: '{{ item }}'
156+
name: "{{ item }}"
156157
state: present
157158
loop: "{{ yum_extra_packages }}"
158159
retries: "{{ retries_count }}"
@@ -162,7 +163,7 @@
162163
# let's install extra_epel_packages
163164
- name: install_extra_epel_packages
164165
ansible.builtin.package:
165-
name: '{{ item }}'
166+
name: "{{ item }}"
166167
state: present
167168
loop: "{{ yum_extra_epel_packages }}"
168169
retries: "{{ retries_count }}"
@@ -213,7 +214,6 @@
213214
delay: "{{ delay_time }}"
214215
until: r_start_webmin is success
215216

216-
217217
- name: start_cockpit_block
218218
when: install_cockpit is defined and install_cockpit
219219
block:
@@ -239,7 +239,7 @@
239239
ansible.builtin.get_url:
240240
url: "{{ item.url }}"
241241
dest: "{{ item.dest }}"
242-
mode: '0644'
242+
mode: "0644"
243243
register: r_neofetch_repository
244244
retries: "{{ retries_count }}"
245245
delay: "{{ delay_time }}"
@@ -260,7 +260,7 @@
260260
ansible.builtin.command: neofetch
261261
when: r_neofetch_repository is success
262262
changed_when: false
263-
# ignore_errors: true
263+
# ignore_errors: true
264264
any_errors_fatal: false
265265
failed_when: false
266266
- name: create_config_folder
@@ -594,8 +594,8 @@
594594
- name: change_sshd_dns_settings
595595
ansible.builtin.lineinfile:
596596
path: /etc/ssh/sshd_config
597-
regexp: 'UseDNS'
598-
line: 'UseDNS no'
597+
regexp: "UseDNS"
598+
line: "UseDNS no"
599599
backrefs: true
600600
state: present
601601
# required sysctl entries
@@ -685,15 +685,15 @@
685685
# let's clean logs and leftovers
686686
- name: cleaning_stuff
687687
ansible.builtin.shell: |
688-
truncate -s 0 /var/log/*
689-
truncate -s 0 -c /var/log/**/*
690-
find /var/log -type f -name \"*.[0-99].gz\" -exec rm {} +
691-
rm -rfv /etc/ansible/*
692-
rm -rfv /var/log/anaconda/*
693-
rm -rfv /var/cache/libvirt/*
694-
rm -rfv /var/cache/powertop/*
695-
rm -rfv /var/crash/*
696-
rm -rfv /var/tmp/*
688+
truncate -s 0 /var/log/*
689+
truncate -s 0 -c /var/log/**/*
690+
find /var/log -type f -name \"*.[0-99].gz\" -exec rm {} +
691+
rm -rfv /etc/ansible/*
692+
rm -rfv /var/log/anaconda/*
693+
rm -rfv /var/cache/libvirt/*
694+
rm -rfv /var/cache/powertop/*
695+
rm -rfv /var/crash/*
696+
rm -rfv /var/tmp/*
697697
any_errors_fatal: false
698698
failed_when: false
699699
changed_when: false

extra/playbooks/provision_rocky8_variables.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,4 @@ kernel_parameters:
135135
state: present
136136
- key: "systemd.unified_cgroup_hierarchy"
137137
value: "1"
138-
state: present
138+
state: present

extra/playbooks/provision_vagrant.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@
7979
dest: /etc/sudoers.d/vagrant
8080
mode: 0440
8181
content: |
82-
{{ vagrant_username }} ALL=(ALL) NOPASSWD: ALL
83-
Defaults:{{ vagrant_username }} !requiretty
82+
{{ vagrant_username }} ALL=(ALL) NOPASSWD: ALL
83+
Defaults:{{ vagrant_username }} !requiretty
8484
validate: /usr/sbin/visudo -csf %s
8585
register: r_vagrant_sudoers_file
8686
until: r_vagrant_sudoers_file is success
@@ -89,9 +89,9 @@
8989
ansible.builtin.lineinfile:
9090
dest: /etc/sudoers
9191
regexp: '^(Defaults\s+requiretty)$'
92-
line: '#Defaults requiretty'
92+
line: "#Defaults requiretty"
9393
insertafter: EOF
9494
state: present
9595
register: r_disable_requiretty
9696
until: r_disable_requiretty is success
97-
when: (r_create_vagrant_user is defined and r_create_vagrant_user is success) and (r_vagrant_sudoers_file is success and r_vagrant_sudoers_file is defined)
97+
when: (r_create_vagrant_user is defined and r_create_vagrant_user is success) and (r_vagrant_sudoers_file is success and r_vagrant_sudoers_file is defined)

0 commit comments

Comments
 (0)