Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tersmitten committed Oct 30, 2024
1 parent 32468df commit be7ea23
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,32 @@
# tasks file
---
- name: install dependencies

Check warning on line 3 in tasks/main.yml

View workflow job for this annotation

GitHub Actions / Lint

name[casing]

All names should start with an uppercase letter.
ansible.builtin.apt:
name: "{{ ssh_server_dependencies }}"
state: "{{ apt_install_state | default('latest') }}"
update_cache: true
cache_valid_time: "{{ apt_update_cache_valid_time | default(3600) }}"
tags:
- configuration
- ssh-server
- ssh-server-dependencies

- name: install

Check warning on line 14 in tasks/main.yml

View workflow job for this annotation

GitHub Actions / Lint

name[casing]

All names should start with an uppercase letter.
ansible.builtin.apt:
name: "{{ ssh_server_install }}"
state: "{{ apt_install_state | default('latest') }}"
tags:
- configuration
- ssh-server
- ssh-server-install

- name: get (current) version # noqa risky-shell-pipe

Check warning on line 23 in tasks/main.yml

View workflow job for this annotation

GitHub Actions / Lint

name[casing]

All names should start with an uppercase letter.
ansible.builtin.shell: >
dpkg-query -W -f='${Version}' openssh-server | awk -F':' '{print $2}' | awk -F'p' '{print $1}'
register: _get_current_version
changed_when: false
failed_when: false
check_mode: false
failed_when: "_get_current_version.rc != 0"
tags:
- configuration
- ssh-server
Expand All @@ -23,26 +44,6 @@
- ssh-server-version
- ssh-server-version-set

- name: install dependencies
ansible.builtin.apt:
name: "{{ ssh_server_dependencies }}"
state: "{{ apt_install_state | default('latest') }}"
update_cache: true
cache_valid_time: "{{ apt_update_cache_valid_time | default(3600) }}"
tags:
- configuration
- ssh-server
- ssh-server-dependencies

- name: install
ansible.builtin.apt:
name: "{{ ssh_server_install }}"
state: "{{ apt_install_state | default('latest') }}"
tags:
- configuration
- ssh-server
- ssh-server-install

- name: check host keys

Check warning on line 47 in tasks/main.yml

View workflow job for this annotation

GitHub Actions / Lint

name[casing]

All names should start with an uppercase letter.
ansible.builtin.command: >
ssh-keygen -A
Expand Down

0 comments on commit be7ea23

Please sign in to comment.