From 91bdc1517ed67eb8da372fdc0f4e39a9a55b3215 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 2 Apr 2024 12:33:51 -0700 Subject: [PATCH] Spellcheck the yaml as well This will catch typos in the actual Ansible code Signed-off-by: Tim Smith --- .github/actions/spelling/expect.txt | 5 +++++ .github/actions/spelling/line_forbidden.patterns | 2 +- .github/actions/spelling/only.txt | 1 + tasks/linux_login.yml | 4 ++-- tasks/windows.yml | 4 ++-- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt index a0b0c77..41a95a9 100644 --- a/.github/actions/spelling/expect.txt +++ b/.github/actions/spelling/expect.txt @@ -1,5 +1,10 @@ Ansiball +copywrite +jsondata linux opensuse +rhel rsprta urllib +userspace +Webclient \ No newline at end of file diff --git a/.github/actions/spelling/line_forbidden.patterns b/.github/actions/spelling/line_forbidden.patterns index 8d5fdc3..8d74948 100644 --- a/.github/actions/spelling/line_forbidden.patterns +++ b/.github/actions/spelling/line_forbidden.patterns @@ -124,7 +124,7 @@ \bOpenstack\b # s.b. Red Hat -\bRedHat\b +# \bRedHat\b # This how Ansible represents it \bRedhat\b # s.b. EuroLinux diff --git a/.github/actions/spelling/only.txt b/.github/actions/spelling/only.txt index cfa27f7..33d47ed 100644 --- a/.github/actions/spelling/only.txt +++ b/.github/actions/spelling/only.txt @@ -1 +1,2 @@ \.md$ +\.yml$ diff --git a/tasks/linux_login.yml b/tasks/linux_login.yml index 002af67..f93e37e 100644 --- a/tasks/linux_login.yml +++ b/tasks/linux_login.yml @@ -20,7 +20,7 @@ become: "{{ use_become }}" when: not ansible_check_mode -- name: Logout cnquery and cnspec from Mondoo platform +- name: Logout cnquery and cnspec from Mondoo Platform ansible.builtin.command: cnspec logout --force --config /etc/opt/mondoo/mondoo.yml args: # only run the command if no config file exists @@ -61,7 +61,7 @@ login_cmd: "{{ login_cmd + ' --splay ' + splay }}" when: splay | length > 0 -- name: Login cnquery and cnspec with Mondoo platform +- name: Login cnquery and cnspec with Mondoo Platform ansible.builtin.command: cmd: "{{ login_cmd }}" args: diff --git a/tasks/windows.yml b/tasks/windows.yml index 4377d9a..66af950 100644 --- a/tasks/windows.yml +++ b/tasks/windows.yml @@ -47,7 +47,7 @@ chdir: "C:\\Program Files\\Mondoo" when: not ansible_check_mode and cnspec_version.stdout is match(".*cnspec 9.*") -- name: Logout cnquery and cnspec from Mondoo platform +- name: Logout cnquery and cnspec from Mondoo Platform ansible.windows.win_command: cnspec.exe logout --force --config C:\\ProgramData\\Mondoo\\mondoo.yml args: chdir: "C:\\Program Files\\Mondoo" @@ -124,7 +124,7 @@ task_cmd: "{{ task_cmd + 'iex ($wc.DownloadString(\\\"https://install.mondoo.com/ps1\\\")); Install-Mondoo -Service enable' }}" when: update_windows_enabled -- name: Add Proxy to Install command wihin Scheduled Task command +- name: Add Proxy to Install command within Scheduled Task command ansible.builtin.set_fact: task_cmd: "{{ task_cmd + ' -Proxy \"' + proxy_env['https_proxy'] + '\"' }}" when: proxy_env['https_proxy'] is defined and update_windows_enabled