From f30709d7dbe88d82c4df66c476db36cb5c0ce903 Mon Sep 17 00:00:00 2001 From: boom2 Date: Thu, 14 Dec 2023 17:24:25 -0500 Subject: - add "new_host" role for system setup - no longer use "all" to mention all hosts in playbooks - update of hosts file to now use localhost as "test" --- ansible-practice/04-playbook-create-file.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ansible-practice/04-playbook-create-file.yml') diff --git a/ansible-practice/04-playbook-create-file.yml b/ansible-practice/04-playbook-create-file.yml index f12d33b..d9676e9 100644 --- a/ansible-practice/04-playbook-create-file.yml +++ b/ansible-practice/04-playbook-create-file.yml @@ -1,9 +1,10 @@ # creating a file # https://phoenixnap.com/kb/ansible-create-file +# https://docs.ansible.com/ansible/latest/collections/ansible/builtin/file_module.html --- - name: "04 - Playing with Ansible - creating a file" - hosts: all + hosts: dev # hosts: localhost # connection: local tasks: -- cgit v1.2.3-54-g00ecf