Skip to content

Commit e06852f

Browse files
committed
Try to fix chapter 10 deployment example (#429)
1 parent 7b243a0 commit e06852f

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

deployments/playbooks/deploy.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
- geerlingguy.passenger
1010

1111
tasks:
12+
- name: Allow Git invocations in repositories owned by other users.
13+
git_config:
14+
name: safe.directory
15+
scope: global
16+
value: '*'
17+
1218
- name: Ensure demo application is at correct release.
1319
git:
1420
repo: https://github.com/geerlingguy/demo-rails-app.git
@@ -18,8 +24,6 @@
1824
force: true
1925
register: app_updated
2026
notify: restart nginx
21-
become: true
22-
become_user: "{{ app_user }}"
2327

2428
- name: Ensure secrets file is present.
2529
template:

deployments/playbooks/provision.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,3 @@
1919
- libreadline-dev
2020
- tzdata
2121
state: present
22-
23-
- name: Ensure app directory exists and is writeable.
24-
file:
25-
path: "{{ app_directory }}"
26-
state: directory
27-
owner: "{{ app_user }}"
28-
group: "{{ app_user }}"
29-
mode: 0755

deployments/playbooks/vars.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,14 @@ passenger_ruby: /usr/local/bin/ruby
1818

1919
# Variables for Ruby installation.
2020
ruby_install_from_source: true
21-
ruby_download_url: https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.6.tar.gz
22-
ruby_version: 2.7.6
21+
ruby_download_url: https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.0.tar.gz
22+
ruby_version: 2.6.0
23+
ruby_install_bundler: false
24+
ruby_install_gems:
25+
- name: bundler
26+
version: 2.1.4
27+
user_install: false
28+
ruby_install_gems_user: root
2329

2430
# Variables for Node.js installation.
2531
nodejs_install_npm_user: root

0 commit comments

Comments
 (0)