Skip to content

Commit

Permalink
fix: Update quotes in YAML files for consistency
Browse files Browse the repository at this point in the history
Fixed inconsistent usage of single and double quotes in YAML files for better readability and maintainability.
  • Loading branch information
marcinbojko committed Nov 25, 2024
1 parent 5dba589 commit a9b6d62
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/01_lint_me.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
DEFAULT_BRANCH: ${{ github.ref_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_ALL_CODEBASE: ${{ github.event_name != 'pull_request' }}
FILTER_REGEX_EXCLUDE: '.*extra/.*'
FILTER_REGEX_EXCLUDE: ".*extra/.*"
VALIDATE_JSCPD: false
VALIDATE_TERRAGRUNT: false
VALIDATE_GITLEAKS: false
1 change: 0 additions & 1 deletion extra/playbooks/provision_alma8_variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,3 @@ gpgkey:
state: present
- url: https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux-8
state: present

1 change: 0 additions & 1 deletion extra/playbooks/provision_oracle9_variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,3 @@ kernel_parameters:
- key: "fsck.repair"
value: "yes"
state: present

38 changes: 19 additions & 19 deletions extra/playbooks/provision_rhel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@
tags:
- assert
- name: assert_root_partition_has_16_GB_of_free_space
ansible.builtin.assert: {that: item.mount == '/' or item.size_available > 17179869184}
loop: '{{ ansible_mounts }}'
ansible.builtin.assert:
{ that: item.mount == '/' or item.size_available > 17179869184 }
loop: "{{ ansible_mounts }}"
ignore_errors: false
when: item.mount == '/'
register: freespace
Expand Down Expand Up @@ -141,7 +142,7 @@
changed_when: true
- name: install_extra_groups
ansible.builtin.package:
name: '{{ item }}'
name: "{{ item }}"
state: present
loop: "{{ yum_extra_groups }}"
retries: "{{ retries_count }}"
Expand All @@ -152,7 +153,7 @@
# let's install extra packages
- name: install_extra_packages
ansible.builtin.package:
name: '{{ item }}'
name: "{{ item }}"
state: present
loop: "{{ yum_extra_packages }}"
retries: "{{ retries_count }}"
Expand All @@ -162,7 +163,7 @@
# let's install extra_epel_packages
- name: install_extra_epel_packages
ansible.builtin.package:
name: '{{ item }}'
name: "{{ item }}"
state: present
loop: "{{ yum_extra_epel_packages }}"
retries: "{{ retries_count }}"
Expand Down Expand Up @@ -213,7 +214,6 @@
delay: "{{ delay_time }}"
until: r_start_webmin is success


- name: start_cockpit_block
when: install_cockpit is defined and install_cockpit
block:
Expand All @@ -239,7 +239,7 @@
ansible.builtin.get_url:
url: "{{ item.url }}"
dest: "{{ item.dest }}"
mode: '0644'
mode: "0644"
register: r_neofetch_repository
retries: "{{ retries_count }}"
delay: "{{ delay_time }}"
Expand All @@ -260,7 +260,7 @@
ansible.builtin.command: neofetch
when: r_neofetch_repository is success
changed_when: false
# ignore_errors: true
# ignore_errors: true
any_errors_fatal: false
failed_when: false
- name: create_config_folder
Expand Down Expand Up @@ -594,8 +594,8 @@
- name: change_sshd_dns_settings
ansible.builtin.lineinfile:
path: /etc/ssh/sshd_config
regexp: 'UseDNS'
line: 'UseDNS no'
regexp: "UseDNS"
line: "UseDNS no"
backrefs: true
state: present
# required sysctl entries
Expand Down Expand Up @@ -685,15 +685,15 @@
# let's clean logs and leftovers
- name: cleaning_stuff
ansible.builtin.shell: |
truncate -s 0 /var/log/*
truncate -s 0 -c /var/log/**/*
find /var/log -type f -name \"*.[0-99].gz\" -exec rm {} +
rm -rfv /etc/ansible/*
rm -rfv /var/log/anaconda/*
rm -rfv /var/cache/libvirt/*
rm -rfv /var/cache/powertop/*
rm -rfv /var/crash/*
rm -rfv /var/tmp/*
truncate -s 0 /var/log/*
truncate -s 0 -c /var/log/**/*
find /var/log -type f -name \"*.[0-99].gz\" -exec rm {} +
rm -rfv /etc/ansible/*
rm -rfv /var/log/anaconda/*
rm -rfv /var/cache/libvirt/*
rm -rfv /var/cache/powertop/*
rm -rfv /var/crash/*
rm -rfv /var/tmp/*
any_errors_fatal: false
failed_when: false
changed_when: false
Expand Down
2 changes: 1 addition & 1 deletion extra/playbooks/provision_rocky8_variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,4 @@ kernel_parameters:
state: present
- key: "systemd.unified_cgroup_hierarchy"
value: "1"
state: present
state: present
8 changes: 4 additions & 4 deletions extra/playbooks/provision_vagrant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@
dest: /etc/sudoers.d/vagrant
mode: 0440
content: |
{{ vagrant_username }} ALL=(ALL) NOPASSWD: ALL
Defaults:{{ vagrant_username }} !requiretty
{{ vagrant_username }} ALL=(ALL) NOPASSWD: ALL
Defaults:{{ vagrant_username }} !requiretty
validate: /usr/sbin/visudo -csf %s
register: r_vagrant_sudoers_file
until: r_vagrant_sudoers_file is success
Expand All @@ -89,9 +89,9 @@
ansible.builtin.lineinfile:
dest: /etc/sudoers
regexp: '^(Defaults\s+requiretty)$'
line: '#Defaults requiretty'
line: "#Defaults requiretty"
insertafter: EOF
state: present
register: r_disable_requiretty
until: r_disable_requiretty is success
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)
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 comments on commit a9b6d62

Please sign in to comment.