From b859a045ff6714771571b784d7434c9caa9151e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Thu, 5 Sep 2024 23:38:05 +0100 Subject: [PATCH] . --- ansible/site.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/ansible/site.yml b/ansible/site.yml index 4d48066..1883131 100644 --- a/ansible/site.yml +++ b/ansible/site.yml @@ -1,8 +1,20 @@ -- name: homesrv01 playbook - hosts: all - roles: - - myInfra.dev.homesrv01.core - - myInfra.ssh - - myInfra.dev.homesrv01 +- name: Hello from ansible + hosts: all + tasks: + - name: Ping my hosts + become: true + ansible.builtin.ping: + + - name: Print message + ansible.builtin.debug: + msg: Hello world + + +#- name: homesrv01 playbook +# hosts: all +# roles: +# - myInfra.dev.homesrv01.core +# - myInfra.ssh +# - myInfra.dev.homesrv01 \ No newline at end of file