vn-ansible/linux-config-root-user.yaml

19 lines
507 B
YAML
Raw Normal View History

2023-10-11 11:45:13 +00:00
---
2023-12-19 14:55:30 +00:00
- hosts: '{{ ip_addr }}'
2023-10-11 11:45:13 +00:00
become: yes
become_method: sudo
gather_facts: no
tasks:
2024-02-14 17:10:17 +00:00
- 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
2023-10-18 10:26:07 +00:00
- name: "[CONFIG ROOT USER] Configure SSH root user"
2023-10-11 11:45:13 +00:00
import_role:
2023-10-18 10:26:07 +00:00
name: config-root-user
2024-02-14 17:10:17 +00:00
when: root-user_enabled is defined and root-user_enabled