1
0

Add reponse for ansible

Signed-off-by: Arnaud M <arnaud.choupinette@mailops.fr>
This commit is contained in:
Arnaud M
2023-03-04 20:49:29 +01:00
parent 01eb15f6d5
commit 47d1e2b488
11 changed files with 33 additions and 7 deletions

View File

@@ -35,13 +35,12 @@ Check if ansible is correctly installed (and the version you have):
ansible --version
```
```
ansible 2.7.7
config file = /etc/ansible/ansible.cfg
ansible 2.10.8
config file = None
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 3.7.3 (default, Jul 25 2020, 13:03:44) [GCC 8.3.0]
python version = 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]
```
## Ad-hoc ping
@@ -68,7 +67,7 @@ ansible localhost -m shell -a "hostname"
Result:
```
localhost | CHANGED | rc=0 >>
ansible101
isen-x
```
Q: what command can you use to get the IP of your machine?