Skip to content
Snippets Groups Projects
Commit 156a532b authored by ale's avatar ale
Browse files

Install ssh-key-wtmp when ssh support is enabled

parent 65cc2561
Loading
Checking pipeline status
...@@ -90,12 +90,10 @@ ...@@ -90,12 +90,10 @@
path: "/etc/apt/preferences.d/99float-syslog" path: "/etc/apt/preferences.d/99float-syslog"
state: absent state: absent
- name: Install base packages - set_fact:
apt: extra_packages: []
name: "{{ packages }}" ssh_packages: []
state: present base_packages:
vars:
packages:
# Standard Debian packages # Standard Debian packages
- acpid - acpid
- auditd - auditd
...@@ -130,16 +128,25 @@ ...@@ -130,16 +128,25 @@
- runcron - runcron
- tabacco - tabacco
- name: Install extra packages - set_fact:
apt: ssh_packages:
name: "{{ extra_packages }}" - ssh-key-wtmp
state: present when: "enable_ssh"
vars:
- set_fact:
extra_packages: extra_packages:
- net-tools - net-tools
- vim - vim
when: "not testing|default(True)" when: "not testing|default(True)"
- set_fact:
all_packages: "{{ base_packages + ssh_packages + extra_packages }}"
- name: Install packages
apt:
name: "{{ all_packages }}"
state: present
- name: Remove blacklisted packages - name: Remove blacklisted packages
apt: apt:
name: "{{ packages }}" name: "{{ packages }}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment