-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcomponent-al2.yml.tpl
More file actions
26 lines (26 loc) · 1.08 KB
/
component-al2.yml.tpl
File metadata and controls
26 lines (26 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: ${name}-document
%{ if description != null ~}
description: ${description}
%{ endif ~}
schemaVersion: 1.0
phases:
- name: build
steps:
- name: ansible-install
action: ExecuteBash
inputs:
commands:
# Install Ansible dependencies
- sudo yum install -y git gcc zlib-devel bzip2 bzip2-devel readline-devel openssl11-devel tk-devel libffi-devel xz-devel sqlite sqlite-devel ${additional_pkgs}
- curl -s -S -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer -o /var/tmp/pyenv-installer
- export PYENV_ROOT="${ansible_pyenv_path}"
- bash /var/tmp/pyenv-installer
# Set up pyenv in current shell
- export PATH="$PYENV_ROOT/bin:$PATH"
- eval "$(pyenv init -)"
# Install desired Python version
- pyenv install ${python_version}
- pyenv global ${python_version}
- pyenv virtualenv ${python_version} ansible
# Install Ansible
- pip install ansible ${additional_pip_pkgs}