From 6d3abe25184fd826b90e49ef4be168063ced8b39 Mon Sep 17 00:00:00 2001 From: Eric Anderson Date: Sun, 10 Mar 2024 23:52:24 -0700 Subject: [PATCH] fix linting issues --- .github/workflows/chrony.yml | 6 +++--- .github/workflows/epel.yml | 2 +- .github/workflows/logrotate.yml | 2 +- .github/workflows/ntp.yml | 2 +- .github/workflows/remi_repo.yml | 2 +- .github/workflows/selinux.yml | 2 +- changelogs/config.yaml | 32 ++++++++++++++++---------------- molecule/selinux/converge.yml | 2 +- roles/selinux/vars/redhat.yml | 2 +- 9 files changed, 26 insertions(+), 26 deletions(-) diff --git a/.github/workflows/chrony.yml b/.github/workflows/chrony.yml index 14b8d8e..6ae96c4 100644 --- a/.github/workflows/chrony.yml +++ b/.github/workflows/chrony.yml @@ -21,7 +21,7 @@ jobs: fail-fast: false matrix: molecule_distro: - - {distro: centos-8, command: /usr/sbin/init} + - { distro: centos-8, command: /usr/sbin/init } # - {distro: ubuntu-18.04, command: /lib/systemd/systemd} # - {distro: ubuntu-20.04, command: /lib/systemd/systemd} # - {distro: debian-10, command: /lib/systemd/systemd} @@ -37,7 +37,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: 3.12 - + - name: Install dependencies run: | sudo apt install apt-transport-https ca-certificates curl software-properties-common @@ -45,7 +45,7 @@ jobs: sudo sh get-docker.sh python -m pip install --upgrade pip pip install ansible molecule yamllint ansible-lint molecule-plugins[docker] - + - name: Run role tests run: >- molecule --version && diff --git a/.github/workflows/epel.yml b/.github/workflows/epel.yml index 1073604..a3b7eee 100644 --- a/.github/workflows/epel.yml +++ b/.github/workflows/epel.yml @@ -35,7 +35,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: 3.12 - + - name: Install dependencies run: | sudo apt install apt-transport-https ca-certificates curl software-properties-common diff --git a/.github/workflows/logrotate.yml b/.github/workflows/logrotate.yml index 7dbdf20..8609482 100644 --- a/.github/workflows/logrotate.yml +++ b/.github/workflows/logrotate.yml @@ -40,7 +40,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: 3.12 - + - name: Install dependencies run: | sudo apt install apt-transport-https ca-certificates curl software-properties-common diff --git a/.github/workflows/ntp.yml b/.github/workflows/ntp.yml index cc900bf..5cbc8e2 100644 --- a/.github/workflows/ntp.yml +++ b/.github/workflows/ntp.yml @@ -36,7 +36,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: 3.12 - + - name: Install dependencies run: | sudo apt install apt-transport-https ca-certificates curl software-properties-common diff --git a/.github/workflows/remi_repo.yml b/.github/workflows/remi_repo.yml index e018d53..83f75b5 100644 --- a/.github/workflows/remi_repo.yml +++ b/.github/workflows/remi_repo.yml @@ -35,7 +35,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: 3.12 - + - name: Install dependencies run: | sudo apt install apt-transport-https ca-certificates curl software-properties-common diff --git a/.github/workflows/selinux.yml b/.github/workflows/selinux.yml index a694776..35f2d29 100644 --- a/.github/workflows/selinux.yml +++ b/.github/workflows/selinux.yml @@ -35,7 +35,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: 3.12 - + - name: Install dependencies run: | sudo apt install apt-transport-https ca-certificates curl software-properties-common diff --git a/changelogs/config.yaml b/changelogs/config.yaml index 9aaba90..0c0823c 100644 --- a/changelogs/config.yaml +++ b/changelogs/config.yaml @@ -11,22 +11,22 @@ prelude_section_name: release_summary prelude_section_title: Release Summary sanitize_changelog: true sections: -- - major_changes - - Major Changes -- - minor_changes - - Minor Changes -- - breaking_changes - - Breaking Changes / Porting Guide -- - deprecated_features - - Deprecated Features -- - removed_features - - Removed Features (previously deprecated) -- - security_fixes - - Security Fixes -- - bugfixes - - Bugfixes -- - known_issues - - Known Issues + - - major_changes + - Major Changes + - - minor_changes + - Minor Changes + - - breaking_changes + - Breaking Changes / Porting Guide + - - deprecated_features + - Deprecated Features + - - removed_features + - Removed Features (previously deprecated) + - - security_fixes + - Security Fixes + - - bugfixes + - Bugfixes + - - known_issues + - Known Issues title: Ericsysmin.System trivial_section_name: trivial use_fqcn: true diff --git a/molecule/selinux/converge.yml b/molecule/selinux/converge.yml index 9fb420b..78e9dc1 100644 --- a/molecule/selinux/converge.yml +++ b/molecule/selinux/converge.yml @@ -4,7 +4,7 @@ pre_tasks: - name: Update package cache ansible.builtin.package: - update_cache: yes + update_cache: true changed_when: false register: task_result until: task_result is success diff --git a/roles/selinux/vars/redhat.yml b/roles/selinux/vars/redhat.yml index 664094d..e65407a 100644 --- a/roles/selinux/vars/redhat.yml +++ b/roles/selinux/vars/redhat.yml @@ -1,4 +1,4 @@ --- # code: language=ansible selinux_python_package: "{{ (ansible_python.version.major == 2) | - ternary('libselinux-python', 'libselinux-python3') }}" \ No newline at end of file + ternary('libselinux-python', 'libselinux-python3') }}"