Skip to content

Commit 07953e6

Browse files
authored
# suggested changes to wording for simplification (#1428)
1 parent 3a76c6d commit 07953e6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/books/learning_ansible/01-basic.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ There are two main configuration files:
182182
* The main configuration file `ansible.cfg` where the commands, modules, plugins, and ssh configuration reside;
183183
* The client machine management inventory file `hosts` where the clients, and groups of clients are declared.
184184

185-
If Ansible was installed via its RPM package, then the configuration file will have been automatically created. With a `pip` installation, this file does not exist. We'll have to create it by hand thanks to the `ansible-config` command:
185+
The configuration file would automatically be created if Ansible was installed with its RPM package. With a `pip` installation, this file does not exist. We'll have to create it by hand thanks to the `ansible-config` command:
186186

187187
```
188188
$ ansible-config -h
@@ -208,17 +208,17 @@ The `--disabled` option allows you to comment out the set of options by prefixin
208208

209209
!!! NOTE
210210

211-
You can also choose to embed the ansible configuration in your code repository, with ansible loading the configuration files it finds in the following order (processing the first file it finds and ignoring the rest):
211+
You can also choose to embed the ansible configuration in your code repository, with Ansible loading the configuration files it finds in the following order (processing the first file it encounters and ignoring the rest):
212212

213213
* if the environment variable `$ANSIBLE_CONFIG` is set, load the specified file.
214214
* `ansible.cfg` if exists in the current directory.
215215
* `~/.ansible.cfg` if exists (in the user’s home directory).
216216

217-
If none of these three files is found, the default file is loaded.
217+
The default file is loaded if none of these three files are found.
218218

219219
### The inventory file `/etc/ansible/hosts`
220220

221-
As Ansible will have to work with all your equipment to be configured, it is very important to provide it with one (or more) well-structured inventory file(s), which perfectly matches your organization.
221+
As Ansible will have to work with all your equipment to be configured, providing it with one (or more) well-structured inventory file(s) that perfectly matches your organization is essential.
222222

223223
It is sometimes necessary to think carefully about how to build this file.
224224

@@ -272,7 +272,7 @@ Go to the default inventory file, which is located under `/etc/ansible/hosts`. S
272272

273273
As you can see, the file provided as an example uses the INI format, which is well known to system administrators. Please note that you can choose another file format (like yaml for example), but for the first tests, the INI format is well adapted to our future examples.
274274

275-
Obviously, in production, the inventory can be generated automatically, especially if you have a virtualization environment like VMware VSphere or a cloud environment (Aws, Openstack or other).
275+
The inventory can be generated automatically in production, especially if you have a virtualization environment like VMware VSphere or a cloud environment (Aws, OpenStack, or another).
276276

277277
* Creating a hostgroup in `/etc/ansible/hosts`:
278278

@@ -302,7 +302,7 @@ ansible_clients
302302
172.16.1.10
303303
```
304304

305-
We won't go any further for the moment on the subject of inventory, but if you're interested, consider checking [this link](https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html).
305+
We won't go any further on inventory, but if you are interested, consider checking [this link](https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html).
306306

307307
Now that our management server is installed and our inventory is ready, it's time to run our first `ansible` commands.
308308

@@ -375,7 +375,7 @@ On both management machine and clients, we will create an `ansible` user dedicat
375375

376376
This user will be used:
377377

378-
* On the administration station side: to run `ansible` commands and ssh to managed clients.
378+
* On the administration station side: to run `ansible` commands and SSH to managed clients.
379379
* On the managed stations (here the server that serves as your administration station also serves as a client, so it is managed by itself) to execute the commands launched from the administration station: it must therefore have sudo rights.
380380

381381
On both machines, create an `ansible` user, dedicated to ansible:
@@ -686,7 +686,7 @@ The command returns the following error codes:
686686

687687
!!! Note
688688

689-
Please note that `ansible` will return Ok when there is no host matching your target, which might mislead you!
689+
Please note that `ansible` will return Ok when no host matches your target, which might mislead you!
690690

691691
### Example of Apache and MySQL playbook
692692

0 commit comments

Comments
 (0)