Compare commits

..

No commits in common. "19ffd5953ff9f051225510e5ee61619ad829a085" and "20064cff722277bf65cbafcf3dee360c7e7434f1" have entirely different histories.

7 changed files with 13 additions and 21 deletions

View file

@ -1,2 +0,0 @@
skip_list:
- var-naming

1
.gitignore vendored
View file

@ -4,7 +4,6 @@ inventory/
# Ignore .secret files.... you know, there secret...
*.secret
.vault-*
vault.secret
# Ignore Caching
cache/

View file

@ -10,7 +10,7 @@ fact_caching_connection = ./cache
fact_caching_timeout = 86400
# Rollen-Pfade
roles_path = ./roles/
roles_path = ./roles/global:./roles/custom
# Vault-Einstellungen
vault_password_file = ./vault.secret

View file

@ -1,5 +0,0 @@
---
- name: Install and start Apache web server
hosts: docker1
roles:
- server_install_ssh

View file

@ -1,5 +1,5 @@
---
- name: Restart SSH
ansible.builtin.service:
service:
name: ssh
state: restarted

View file

@ -1,22 +1,22 @@
---
- name: Paketlisten aktualisieren
ansible.builtin.apt:
update_cache: true
apt:
update_cache: yes
cache_valid_time: 3600
- name: OpenSSH Server installieren
ansible.builtin.apt:
apt:
name: openssh-server
state: present
- name: Benutzer anlegen (falls nicht vorhanden)
ansible.builtin.user:
user:
name: "{{ ssh_user }}"
shell: /bin/bash
create_home: true
create_home: yes
- name: SSH-Verzeichnis anlegen
ansible.builtin.file:
file:
path: "/home/{{ ssh_user }}/.ssh"
state: directory
owner: "{{ ssh_user }}"
@ -24,7 +24,7 @@
mode: '0700'
- name: SSH-Key eintragen
ansible.builtin.copy:
copy:
content: "{{ ssh_public_key }}"
dest: "/home/{{ ssh_user }}/.ssh/authorized_keys"
owner: "{{ ssh_user }}"
@ -32,7 +32,7 @@
mode: '0600'
- name: SSH-Konfiguration per Template übertragen
ansible.builtin.template:
template:
src: sshd_config.j2
dest: /etc/ssh/sshd_config
owner: root