2024-02-12 09:37:19 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- hosts: '{{ ip_addr }}'
|
|
|
|
become: yes
|
|
|
|
become_method: sudo
|
|
|
|
gather_facts: yes
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
|
2024-02-15 11:24:20 +00:00
|
|
|
- name: "[CONFIG SUDOERS] Comprobando si es necesario configurar sudoers"
|
|
|
|
debug:
|
|
|
|
msg: "No es necesario configurar sudoers en la máquina"
|
|
|
|
when: sudoers_enabled is not defined or not sudoers_enabled
|
|
|
|
|
2024-02-12 09:37:19 +00:00
|
|
|
- name: "[CONFIG SUDOERS] Config sudoers"
|
|
|
|
import_role:
|
2024-02-15 17:10:07 +00:00
|
|
|
name: config-sudoers
|
|
|
|
when: sudoers_enabled is defined and sudoers_enabled
|