Skip to content

Commit

Permalink
refactor vars
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiKhomik committed Dec 11, 2024
1 parent 80d6d0f commit 2702b7d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
8 changes: 4 additions & 4 deletions ansible1/roles/packages/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
- name: Include OS-specific variables.
include_vars: "{{ ansible_os_family }}.yml"

- name: Define ruby_build_packages
set_fact:
ruby_build_packages: "{{ __ruby_build_packages }}"
when: ruby_build_packages is not defined
# - name: Define ruby_build_packages
# set_fact:
# ruby_build_packages: "{{ __ruby_build_packages }}"
# when: ruby_build_packages is not defined

- name: Update apt cache (Debian)
apt: update_cache=true cache_valid_time=86400
Expand Down
16 changes: 7 additions & 9 deletions ansible1/roles/packages/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ ruby_packages:
- nodejs
- yarn
- libvips
ruby_build_packages:
- build-essential
- zlib1g-dev
- libssl-dev
- libyaml-dev
Expand All @@ -32,20 +30,20 @@ ruby_build_packages:
rvm_dependencies:
- curl
- gnupg
- build-essential
- libssl-dev
- libyaml-dev
# - build-essential
# - libssl-dev
# - libyaml-dev
- libreadline-dev
- zlib1g-dev
# - zlib1g-dev
- libsqlite3-dev
- sqlite3
- libxml2-dev
- libxslt1-dev
- libcurl4-openssl-dev
- software-properties-common
- libffi-dev
- nodejs
- yarn
# - libffi-dev
# - nodejs
# - yarn
ruby_rubygems_package_name: rubygems
ruby_download_url: https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.5.tar.xz
workspace: /root
Expand Down

0 comments on commit 2702b7d

Please sign in to comment.