Skip to content

Commit 9e15e1f

Browse files
authored
Remove -i and add -e option in playbook commands
1 parent 8040dcf commit 9e15e1f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Here the option `-e @/path/to/your/config.yml` is used to include your site-spec
6868
The `-b` option means "become", i.e. run with `sudo`.
6969
If this requires a password, include `-K`, which will ask for the `sudo` password when running the playbook:
7070
```
71-
ansible-playbook -i hosts -b -K <name of playbook>.yml
71+
ansible-playbook -b -K -e @inventory/local_site_specific_vars.yml <name of playbook>.yml
7272
```
7373

7474
Before you run any of the commands below, make sure that you created a `inventory/hosts` file, a site-specific configuration file,
@@ -85,12 +85,12 @@ but by default it will not do this. If you want to enable this functionality, se
8585
### Stratum 0
8686
First install the Stratum 0 server:
8787
```
88-
ansible-playbook -i hosts -b -K stratum0.yml
88+
ansible-playbook -b -K -e @inventory/local_site_specific_vars.yml stratum0.yml
8989
```
9090

9191
Then install the files for the configuration repository:
9292
```
93-
ansible-playbook -i hosts -b -K stratum0-deploy-cvmfs-config.yml
93+
ansible-playbook -b -K -e @inventory/local_site_specific_vars.yml stratum0-deploy-cvmfs-config.yml
9494
```
9595

9696
Note that there can be only one Stratum 0, so you should only run this playbook
@@ -113,7 +113,7 @@ cvmfs_squid_conf_src=/path/to/your_stratum1_squid.conf.j2
113113
```
114114
Install the Stratum 1 using:
115115
```
116-
ansible-playbook -i hosts -b -K stratum1.yml
116+
ansible-playbook -b -K -e @inventory/local_site_specific_vars.yml stratum1.yml
117117
```
118118
This will automatically make replicas of all the repositories defined in `group_vars/all.yml`.
119119

@@ -131,7 +131,7 @@ Besides having a Squid configuration with the right ACLs, it is recommended to a
131131

132132
Deploy your proxies using:
133133
```
134-
ansible-playbook -i hosts -b -K localproxy.yml
134+
ansible-playbook -b -K -e @inventory/local_site_specific_vars.yml localproxy.yml
135135
```
136136

137137
### Clients
@@ -145,7 +145,7 @@ cvmfs_http_proxies=["your-local.proxy:3128"]
145145
If you just want to roll out one client without a proxy, you can leave this out.
146146
Finally, run the playbook:
147147
```
148-
ansible-playbook -i hosts -b -K client.yml
148+
ansible-playbook -b -K -e @inventory/local_site_specific_vars.yml client.yml
149149
```
150150

151151
## Verification and usage

0 commit comments

Comments
 (0)