Skip to content

Commit

Permalink
Spellcheck the yaml as well
Browse files Browse the repository at this point in the history
This will catch typos in the actual Ansible code

Signed-off-by: Tim Smith <tsmith84@gmail.com>
  • Loading branch information
tas50 committed Apr 2, 2024
1 parent 444194f commit 91bdc15
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
Ansiball
copywrite
jsondata
linux
opensuse
rhel
rsprta
urllib
userspace
Webclient

Check warning on line 10 in .github/actions/spelling/expect.txt

View workflow job for this annotation

GitHub Actions / Run spell check

No newline at eof. (no-newline-at-eof)
2 changes: 1 addition & 1 deletion .github/actions/spelling/line_forbidden.patterns
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
\bOpenstack\b

# s.b. Red Hat
\bRedHat\b
# \bRedHat\b # This how Ansible represents it
\bRedhat\b

# s.b. EuroLinux
Expand Down
1 change: 1 addition & 0 deletions .github/actions/spelling/only.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
\.md$
\.yml$
4 changes: 2 additions & 2 deletions tasks/linux_login.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions tasks/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 91bdc15

Please sign in to comment.