vn-ansible/linux-config-root-user.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