19 lines
507 B
YAML
19 lines
507 B
YAML
---
|
|
|
|
- hosts: '{{ ip_addr }}'
|
|
become: yes
|
|
become_method: sudo
|
|
gather_facts: no
|
|
|
|
tasks:
|
|
|
|
- name: "[CONFIG ROOT USER] Comprobando si es necesario configurar SSH root user"
|
|
debug:
|
|
msg: "No es necesario configurar SSH root user en la máquina"
|
|
when: root-user_enabled is not defined or not root-user_enabled
|
|
|
|
- name: "[CONFIG ROOT USER] Configure SSH root user"
|
|
import_role:
|
|
name: config-root-user
|
|
when: root-user_enabled is defined and root-user_enabled
|