Fix README
This commit is contained in:
parent
97ea02c904
commit
5dd2a1eb5a
15
README.md
15
README.md
@ -26,23 +26,24 @@ ansible-playbook --vault-id @vault-keyring-client.py ...
|
||||
|
||||
### Production and testing
|
||||
|
||||
The inventory files are split into [`production`](production) and [`testing`](testing).
|
||||
The inventory files are split into [`inventory/production`](inventory/production) and
|
||||
[`inventory/testing`](inventory/testing).
|
||||
|
||||
To run the `main.yml` playbook on production hosts:
|
||||
``` sh
|
||||
ansible-playbook main.yml -i inventory/production
|
||||
ansible-playbook -i inventory/production main.yml
|
||||
```
|
||||
|
||||
To run the `main.yml` playbook on testing hosts:
|
||||
``` sh
|
||||
ansible-playbook main.yml -i inventory/testing
|
||||
ansible-playbook -i inventory/testing main.yml
|
||||
```
|
||||
|
||||
### Playbooks
|
||||
|
||||
The Ansible Edda playbook is composed of smaller [`playbooks`](playbooks). To run a single playbook,
|
||||
invoke the relevant playbook directly from the playbook directory. For example, to run the
|
||||
[`system`](system) playbook, run:
|
||||
[`playbooks/system`](playbooks/system) playbook, run:
|
||||
|
||||
``` sh
|
||||
ansible-playbook playbooks/system.yml
|
||||
@ -56,8 +57,8 @@ ansible-playbook main.yml --tags "system"
|
||||
|
||||
### Roles
|
||||
|
||||
Playbooks are composed of roles defined in the `roles` submodule, [`roles`](roles), and the
|
||||
`playbooks/roles` directory, [`playbooks/roles`](playbooks/roles).
|
||||
Playbooks are composed of roles defined in the [`roles`](roles) submodule and
|
||||
[`playbooks/roles`](playbooks/roles).
|
||||
|
||||
To play a specific role, e.g., `system/base/sshd` in the playbook `system`, run:
|
||||
``` sh
|
||||
@ -70,7 +71,7 @@ ansible-playbook playbooks/system.yml --tags "system:base"
|
||||
```
|
||||
|
||||
Some roles, e.g., `services/setup/user`, have sub-tasks which can also be invoked individually. To
|
||||
find the relevant tag, see the role's `main.yml`.
|
||||
find the relevant tag, see the role's `tasks/main.yml`.
|
||||
|
||||
In all cases, the roles can be also invoked from the main playbook:
|
||||
``` sh
|
||||
|
Loading…
x
Reference in New Issue
Block a user