Commit abe791f2 authored by Vũ Hoàng Nam's avatar Vũ Hoàng Nam

Update .gitignore and add Ansible template.

parent ee153a19
......@@ -24,3 +24,6 @@ Icon
Network Trash Folder
Temporary Items
.apdisk
# Vscode directory
.vscode
Hostname from ansible_facts is: {{ ansible_facts['hostname'] }}
---
- name: Write hostname
hosts: all
tasks:
- name: write hostname using jinja2
ansible.builtin.template:
src: files/templates/test.j2
dest: /home/jay/msg.txt
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment