Skip to content

Commit

Permalink
i14: move ansile to topic
Browse files Browse the repository at this point in the history
  • Loading branch information
tungbq committed Aug 4, 2023
1 parent c490176 commit a2f4337
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 37 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-9-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->
### Content

### Getting started: [getting-started](./getting-started/)

### Topic
| Item | Link |
|------|-----|
| getting-started | [getting-started](./getting-started/)|
| ansible | [ansible](./topic/ansible/)|
| docker | [docker](./docker/)|
| ansible | [ansible](./ansible/)|
| k8s (Kubernetes) | [k8s](./k8s/)|
| helm | [helm](./helm/)|
| jenkins | [jenkins](./jenkins/) - **TODO**|
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ubuntu:latest

RUN apt-get update && \
apt-get install -y software-properties-common && \
apt-add-repository --yes --update ppa:ansible/ansible && \
apt-get install -y ansible
CMD ["/bin/bash"]
FROM ubuntu:latest

RUN apt-get update && \
apt-get install -y software-properties-common && \
apt-add-repository --yes --update ppa:ansible/ansible && \
apt-get install -y ansible
CMD ["/bin/bash"]
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions ansible/basic/README.md → topic/ansible/basic/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Initialize Ansible learning place
## Install ansible: https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html
# Initialize Ansible learning place
## Install ansible: https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
- name: Check CPU and RAM usage
hosts: localhost
gather_facts: yes
tasks:
- name: Get system stats
stat:
path: "/proc/{{ item }}/"
loop:
- "cpuinfo"
- "meminfo"

- name: Print system stats
debug:
var: item.stat.content
with_items: "{{ ansible_loop }}"
when: item.stat.exists
---
- name: Check CPU and RAM usage
hosts: localhost
gather_facts: yes
tasks:
- name: Get system stats
stat:
path: "/proc/{{ item }}/"
loop:
- "cpuinfo"
- "meminfo"

- name: Print system stats
debug:
var: item.stat.content
with_items: "{{ ansible_loop }}"
when: item.stat.exists
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
- name: Ping google.com
hosts: localhost
gather_facts: no
tasks:
- name: Ping google.com
ping:
data: "google.com"
---
- name: Ping google.com
hosts: localhost
gather_facts: no
tasks:
- name: Ping google.com
ping:
data: "google.com"

0 comments on commit a2f4337

Please sign in to comment.