Skip to content
Snippets Groups Projects
Commit 0757ffbe authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Merge branch 'feat-install-zsh' into 'main'

Feat install zsh

Closes #25

See merge request rc/packer-openstack-hpc-image!16
parents 1cd4a782 c0f3a810
No related branches found
No related tags found
No related merge requests found
......@@ -146,3 +146,6 @@
- name: Set timezone to America/Chicago
community.general.timezone:
name: America/Chicago
- name: Install zsh
import_tasks: zsh.yml
---
- name: Install zsh pre-requisites
yum:
name:
- gcc
- ncurses-devel
- name: Download and untar zsh
ansible.builtin.unarchive:
src: "{{ zsh_src_url }}"
dest: /tmp
remote_src: true
validate_certs: no
- name: Configure zsh
ansible.builtin.command: ./configure --with-tcsetpgrp
args:
chdir: "/tmp/zsh-{{ zsh_ver }}"
become: true
- name: Make zsh
ansible.builtin.command: make
args:
chdir: "/tmp/zsh-{{ zsh_ver }}"
become: true
- name: Install zsh
ansible.builtin.command: make install
args:
chdir: "/tmp/zsh-{{ zsh_ver }}"
become: true
- name: Add zsh into /etc/shells
ansible.builtin.lineinfile:
path: /etc/shells
line: /usr/local/bin/zsh
state: present
owner: root
group: root
mode: '0644'
become: true
---
# vars file for cheaha.node
zsh_ver: 5.7.1
zsh_src_url: "https://www.zsh.org/pub/old/zsh-{{ zsh_ver }}.tar.xz"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment