feat: Create role

This commit is contained in:
2022-10-04 15:19:21 +02:00
committed by pulsar89.5
parent d7fd830a52
commit 4d321f490a
7 changed files with 85 additions and 3 deletions

View File

@@ -1,3 +1,37 @@
# role_modele
# role_ssh
Modèle
Secure SSH configuration and manage SSH port
## inventory.yml
```yaml
---
all:
hosts:
host1.ykn.local:
host2.ykn.local:
children:
dnsservers:
hosts:
dnsmasq1.ykn.local:
dnsmasq2.ykn.local:
```
## host_vars/host1.ykn.local.yml
```yaml
---
ssh_listen_port: 2201
```
### playbook.yml
```yaml
---
- hosts: all
roles:
- name: ssh
```