feat: Create role
This commit is contained in:
38
README.md
38
README.md
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user