From 62766cf1fd721d278e95821e05e6b41f7888eed5 Mon Sep 17 00:00:00 2001 From: boom2 Date: Tue, 21 Nov 2023 14:11:56 -0500 Subject: initial commit --- ansible-practice/04-playbook-create-file.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 ansible-practice/04-playbook-create-file.yml (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 new file mode 100644 index 0000000..f12d33b --- /dev/null +++ b/ansible-practice/04-playbook-create-file.yml @@ -0,0 +1,14 @@ +# creating a file +# https://phoenixnap.com/kb/ansible-create-file + +--- +- name: "04 - Playing with Ansible - creating a file" + hosts: all +# hosts: localhost +# connection: local + tasks: + - name: Creating an empty file + file: + path: "~/ansible_created_file-01.txt" + state: touch +... \ No newline at end of file -- cgit v1.2.3-54-g00ecf