playbook rol hosts

This commit is contained in:
Ruben Blanco 2024-02-14 15:51:54 +01:00
parent 43f2f82066
commit a58018e849
1 changed files with 12 additions and 0 deletions

12
linux-config-hosts.yaml Normal file
View File

@ -0,0 +1,12 @@
---
- hosts: '{{ ip_addr }}'
become: yes
become_method: sudo
gather_facts: yes
tasks:
- name: "[CONFIG HOSTS FILE] Configure hosts file"
import_role:
name: config-hosts