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

Install zsh with rpm

parent 1f375d9d
No related branches found
No related tags found
No related merge requests found
...@@ -24,37 +24,12 @@ ...@@ -24,37 +24,12 @@
- texinfo - texinfo
- xz - xz
- name: Download and untar zsh - name: Copy zsh rpm to /tmp
ansible.builtin.unarchive: ansible.builtin.copy:
src: "{{ zsh_src_url }}" src: zsh-5.9-2.el7.x86_64.rpm
dest: /tmp dest: /tmp/zsh-5.9-2.el7.x86_64.rpm
remote_src: true mode: '0755'
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 - name: Install zsh
ansible.builtin.command: make install ansible.builtin.yum:
args: name: /tmp/zsh-5.9-2.el7.x86_64.rpm
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
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