Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.01 KB

File metadata and controls

53 lines (37 loc) · 1.01 KB

Ansible Role: Ruby

本 Role 用于在PHP运行环境下安装 ruby

Requirements

运行本 Role,请确认符合如下的必要条件:

Items Details
Operating system CentOS7.x Ubuntu18.04 AmazonLinux
Python 版本 Python2
Python 组件
Runtime

Related roles

本 Role 在运行时需要确保已经运行:common。以下为例:

roles:
    - {role: role_common, tags: "role_common"}
    - {role: role_ruby, tags: "role_ruby"}

Variables

本 Role 主要变量以及使用方法如下:

Items Details Format 是否初始化
ruby_version [ 2.2, 2.3, 2.4, 2.5, 2.6 ] 字符串

Example

- name: ruby
  hosts: all
  become: yes
  become_method: sudo 
  vars_files:
    - vars/main.yml 

  roles:
    - { role: role_common }
    - { role: role_ruby }
    ...

FAQ