mirror of
https://github.com/BreizhHardware/cours-ISEN-MD.git
synced 2026-01-18 16:47:24 +01:00
Obisidian vault auto-backup: 12-01-2026 10:47:13 on . 4 files edited
This commit is contained in:
@@ -1,2 +1,24 @@
|
||||
#CIPA4 #CloudComputing #DP
|
||||
# Ansible
|
||||
## TP
|
||||
```Bash
|
||||
ssh root@135.125.246.84
|
||||
```
|
||||
mdp : moutard42
|
||||
|
||||
### Installation
|
||||
Install ansible on `localhost`
|
||||
|
||||
```text
|
||||
apt install ansible
|
||||
```
|
||||
|
||||
### Ad-hoc ping
|
||||
Q: What happened behing the scene?
|
||||
It ping the localhost.
|
||||
|
||||
### Ad-hoc shell
|
||||
Q: what command can you use to get the IP of your machine?
|
||||
```Bash
|
||||
ansible localhost -m shell -a "ip a"
|
||||
```
|
||||
|
||||
29
ISEN/Cloud Computing/CIPA4/TP 1 Ansible.md
Normal file
29
ISEN/Cloud Computing/CIPA4/TP 1 Ansible.md
Normal file
@@ -0,0 +1,29 @@
|
||||
#CIPA4 #CloudComputing #DP #Ansible #TP
|
||||
## TP 1
|
||||
```Bash
|
||||
ssh root@135.125.246.84
|
||||
```
|
||||
mdp : moutard42
|
||||
|
||||
### Installation
|
||||
Install ansible on `localhost`
|
||||
|
||||
```text
|
||||
apt install ansible
|
||||
```
|
||||
|
||||
### Ad-hoc ping
|
||||
Q: What happened behing the scene?
|
||||
It ping the localhost.
|
||||
|
||||
### Ad-hoc shell
|
||||
Q: what command can you use to get the IP of your machine?
|
||||
```Bash
|
||||
ansible localhost -m shell -a "ip a"
|
||||
```
|
||||
|
||||
### Ad-hoc setup
|
||||
Q: using this module, what other command can you use to retrieve the ip of your host?
|
||||
```Bash
|
||||
ansible localhost -m setup -a "filter=ansible_default_ipv4"
|
||||
```
|
||||
29
ISEN/Cloud Computing/CIPA4/TP 2 Ansible.md
Normal file
29
ISEN/Cloud Computing/CIPA4/TP 2 Ansible.md
Normal file
@@ -0,0 +1,29 @@
|
||||
#CIPA4 #CloudComputing #DP #Ansible #TP
|
||||
## TP 1
|
||||
```Bash
|
||||
ssh root@135.125.246.84
|
||||
```
|
||||
mdp : moutard42
|
||||
|
||||
### Installation
|
||||
Install ansible on `localhost`
|
||||
|
||||
```text
|
||||
apt install ansible
|
||||
```
|
||||
|
||||
### Ad-hoc ping
|
||||
Q: What happened behing the scene?
|
||||
It ping the localhost.
|
||||
|
||||
### Ad-hoc shell
|
||||
Q: what command can you use to get the IP of your machine?
|
||||
```Bash
|
||||
ansible localhost -m shell -a "ip a"
|
||||
```
|
||||
|
||||
### Ad-hoc setup
|
||||
Q: using this module, what other command can you use to retrieve the ip of your host?
|
||||
```Bash
|
||||
ansible localhost -m setup -a "filter=ansible_default_ipv4"
|
||||
```
|
||||
Reference in New Issue
Block a user