Swap to role based tasks #1

Merged
noah.knegt merged 10 commits from roles into master 2023-02-28 15:49:55 +01:00
20 changed files with 322 additions and 72 deletions
Showing only changes of commit c5d32b0788 - Show all commits

View File

@@ -9,14 +9,14 @@
---
- hosts: ubuntu
remote_user: provision
remote_user: ansible
become: true
roles:
- base
# Clean up the system
- hosts: ubuntu
remote_user: provision
remote_user: ansible
become: true
tasks:
- name: cleanup package cache (debian and ubuntu)

View File

@@ -26,6 +26,7 @@ IgnoreRhosts yes
# Misc. options
AcceptEnv LANG LC_*
TCPKeepAlive yes
Subsystem sftp {{ sftp_path }}
# Logging
SyslogFacility AUTH

View File

@@ -11,3 +11,4 @@
sudo_group: wheel
openssh_service: sshd
openssh_package: openssh
sftp_path: /usr/lib/ssh/sftp-server

View File

@@ -11,3 +11,4 @@
sudo_group: sudo
openssh_service: ssh
openssh_package: openssh-server
sftp_path: /usr/lib/openssh/sftp-server

View File

@@ -11,4 +11,5 @@
sudo_group: sudo
openssh_service: ssh
openssh_package: openssh-server
sftp_path: /usr/lib/openssh/sftp-server
ssh_port: 4422