Skip to content

Commit

Permalink
Spellcheck the yaml as well (#67)
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 authored Apr 2, 2024
1 parent d9b514f commit 0a84108
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
2 changes: 1 addition & 1 deletion .github/actions/spelling/line_forbidden.patterns
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,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 0a84108

Please sign in to comment.