Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
devops-intern-labs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Nam
devops-intern-labs
Commits
abe791f2
Commit
abe791f2
authored
Jan 14, 2024
by
Vũ Hoàng Nam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update .gitignore and add Ansible template.
parent
ee153a19
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
0 deletions
+13
-0
.gitignore
.gitignore
+3
-0
Chuong-trinh-dao-tao-thuc-tap-sinh-smarthome-platform-devops.xlsx
...rinh-dao-tao-thuc-tap-sinh-smarthome-platform-devops.xlsx
+0
-0
test.j2
Week3&4/files/templates/test.j2
+1
-0
first-template.yml
Week3&4/first-template.yml
+9
-0
No files found.
.gitignore
View file @
abe791f2
...
...
@@ -24,3 +24,6 @@ Icon
Network Trash Folder
Temporary Items
.apdisk
# Vscode directory
.vscode
Documents/Chuong-trinh-dao-tao-thuc-tap-sinh-smarthome-platform-devops.xlsx
View file @
abe791f2
No preview for this file type
Week3&4/files/templates/test.j2
0 → 100644
View file @
abe791f2
Hostname from ansible_facts is: {{ ansible_facts['hostname'] }}
Week3&4/first-template.yml
0 → 100644
View file @
abe791f2
---
-
name
:
Write hostname
hosts
:
all
tasks
:
-
name
:
write hostname using jinja2
ansible.builtin.template
:
src
:
files/templates/test.j2
dest
:
/home/jay/msg.txt
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment