Skip to content
This repository was archived by the owner on Aug 9, 2022. It is now read-only.

Commit 411ee02

Browse files
committed
example
1 parent f8d1a26 commit 411ee02

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,11 @@ To use this role you can create a playbook such as the following:
8383
nginx_controller_api_key: "{{ nginx_controller_api_key }}"
8484
```
8585
86-
Use
87-
---
86+
You can then run `ansible-playbook nginx_controller_agent.yaml` to execute the playbook.
8887

89-
```cli
90-
ansible-playbook nginx_controller_agent.yaml -b -i hosts -e "nginx_controller_user_email=controller-admin@nginx.com nginx_controller_user_password=password nginx_controller_fqdn=controller.acme.com"
91-
```
88+
Alternatively, you can also pass/override any variables at run time using the `--extra-vars` or `-e` flag like so `ansible-playbook nginx_controller_agent.yaml -e "nginx_controller_user_email=user@company.com nginx_controller_user_password=notsecure nginx_controller_fqdn=controller.example.local nginx_controller_validate_certs=false"`
89+
90+
You can also pass/override any variables by passing a `yaml` file containing any number of variables like so `ansible-playbook nginx_controller_agent.yaml -e "@nginx_controller_agent_vars.yaml"`
9291

9392
License
9493
-------

0 commit comments

Comments
 (0)