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

Install zsh with rpm

parent d1321adc
No related branches found
No related tags found
1 merge request!10Add gitlab ci into project
---
- 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: Copy zsh rpm to /tmp
ansible.builtin.copy:
src: zsh-5.9-2.el7.x86_64.rpm
dest: /tmp/zsh-5.9-2.el7.x86_64.rpm
mode: '0755'
- 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
ansible.builtin.yum:
name: /tmp/zsh-5.9-2.el7.x86_64.rpm
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