@@ -94,20 +94,20 @@ Upon studiing installation instructions, we automate manual installation steps w
94
94
- name: Ruby | Download chruby distribution
95
95
get_url: url="http://github.com/postmodern/chruby/archive/v{{ chruby_version }}.tar.gz"
96
96
dest="/tmp/chruby-{{ chruby_version }}.tar.gz"
97
- when: chruby_present| failed
97
+ when: chruby_present is failed
98
98
tags: ruby
99
99
100
100
- name: Ruby | unpack chruby
101
101
command: tar xf "/tmp/chruby-{{ chruby_version }}.tar.gz"
102
102
chdir="/tmp"
103
- when: chruby_present| failed
103
+ when: chruby_present is failed
104
104
tags: ruby
105
105
106
106
- name: Ruby | chruby install target
107
107
command: make install
108
108
chdir="/tmp/chruby-{{ chruby_version }}"
109
109
become: yes
110
- when: chruby_present| failed
110
+ when: chruby_present is failed
111
111
tags: ruby
112
112
113
113
- name: Ruby | autoload script
@@ -212,7 +212,7 @@ Historically, I prefer Nginx over classic Apache, thus we will install pre-build
212
212
213
213
- name: Passenger | Add GPG key to apt keyring
214
214
apt_key: keyserver=keyserver.ubuntu.com id=561F9B9CAC40B2F7
215
- when: ansible_os_family == "Debian" and nginx_present| failed
215
+ when: ansible_os_family == "Debian" and nginx_present is failed
216
216
tags: passenger
217
217
become: yes
218
218
@@ -221,19 +221,19 @@ Historically, I prefer Nginx over classic Apache, thus we will install pre-build
221
221
with_items:
222
222
- apt-transport-https
223
223
- ca-certificates
224
- when: ansible_os_family == "Debian" and nginx_present| failed
224
+ when: ansible_os_family == "Debian" and nginx_present is failed
225
225
become: yes
226
226
tags: passenger
227
227
228
228
- name: Passenger | Add nginx extras repository
229
229
apt_repository: repo="deb https://oss-binaries.phusionpassenger.com/apt/passenger trusty main" state=present
230
- when: ansible_os_family == "Debian" and nginx_present| failed
230
+ when: ansible_os_family == "Debian" and nginx_present is failed
231
231
tags: passenger
232
232
become: yes
233
233
234
234
- name: Ruby | Install Nginx extra and Phusion Passenger
235
235
apt: state=present update_cache=yes pkg="{{item}}"
236
- when: ansible_os_family == "Debian" and nginx_present| failed
236
+ when: ansible_os_family == "Debian" and nginx_present is failed
237
237
with_items:
238
238
- nginx-extras
239
239
- passenger
@@ -245,7 +245,7 @@ Historically, I prefer Nginx over classic Apache, thus we will install pre-build
245
245
with_items:
246
246
- /etc/nginx/sites-available
247
247
- /etc/nginx/sites-enabled
248
- when: ansible_os_family == "Debian" and nginx_present| failed
248
+ when: ansible_os_family == "Debian" and nginx_present is failed
249
249
tags:
250
250
- nginx
251
251
- passenger
@@ -256,44 +256,44 @@ Historically, I prefer Nginx over classic Apache, thus we will install pre-build
256
256
tags:
257
257
- nginx
258
258
- passenger
259
- when: ansible_os_family == "Debian" and nginx_present| failed
259
+ when: ansible_os_family == "Debian" and nginx_present is failed
260
260
become: yes
261
261
262
262
- name: Nginx | Disable default site
263
263
file: path=/etc/nginx/sites-enabled/default state=absent
264
264
tags:
265
265
- nginx
266
266
- passenger
267
- when: ansible_os_family == "Debian" and nginx_present| failed
267
+ when: ansible_os_family == "Debian" and nginx_present is failed
268
268
become: yes
269
269
270
270
- name: Nginx | Uncomment server_names_hash_bucket_size
271
271
lineinfile: dest=/etc/nginx/nginx.conf regexp="^(\s*)#\s*server_names_hash_bucket_size" line="\1server_names_hash_bucket_size 64;" backrefs=yes
272
272
become: yes
273
- when: ansible_os_family == "Debian" and nginx_present| failed
273
+ when: ansible_os_family == "Debian" and nginx_present is failed
274
274
tags:
275
275
- nginx
276
276
- passenger
277
277
278
278
- name: Nginx | Set ruby to system one
279
279
lineinfile: dest=/etc/nginx/nginx.conf regexp="^(\s*)#\s*passenger_ruby" line="passenger_ruby /usr/local/bin/ruby;" backrefs=yes
280
280
become: yes
281
- when: ansible_os_family == "Debian" and nginx_present| failed
281
+ when: ansible_os_family == "Debian" and nginx_present is failed
282
282
tags:
283
283
- nginx
284
284
- passenger
285
285
286
286
- name: Nginx | Set ruby to system one
287
287
lineinfile: dest=/etc/nginx/nginx.conf regexp="^(\s*)#\s*passenger_root" line="passenger_root /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini;" backrefs=yes
288
288
become: yes
289
- when: ansible_os_family == "Debian" and nginx_present| failed
289
+ when: ansible_os_family == "Debian" and nginx_present is failed
290
290
tags:
291
291
- nginx
292
292
- passenger
293
293
294
294
- name: Nginx | Reload
295
295
service: name=nginx state=reloaded
296
- when: ansible_os_family == "Debian" and nginx_present| failed
296
+ when: ansible_os_family == "Debian" and nginx_present is failed
297
297
tags:
298
298
- nginx
299
299
- passenger
0 commit comments