2021-09-11 15:25:53 +00:00
|
|
|
---
|
|
|
|
# This role will install nim into NITTER_USER using choosenim
|
|
|
|
- name: Download choosenim install script
|
|
|
|
ansible.builtin.get_url:
|
|
|
|
url: https://nim-lang.org/choosenim/init.sh
|
|
|
|
dest: "/home/{{ NITTER_USER }}/init.sh"
|
|
|
|
mode: '0755'
|
2021-09-11 15:31:54 +00:00
|
|
|
owner: "{{ NITTER_USER }}"
|
|
|
|
group: "{{ NITTER_USER }}"
|
2021-09-11 15:29:53 +00:00
|
|
|
become: true
|
|
|
|
become_user: "{{ NITTER_USER }}"
|
2021-09-11 15:25:53 +00:00
|
|
|
- name: Run choosenim install script
|
|
|
|
ansible.builtin.shell: "/home/{{ NITTER_USER }}/init.sh -y"
|
2021-09-11 15:29:53 +00:00
|
|
|
become: true
|
|
|
|
become_user: "{{ NITTER_USER }}"
|
2021-09-11 16:01:59 +00:00
|
|
|
- name: Copy .profile file to add nimble to PATH
|
|
|
|
ansible.builtin.template:
|
|
|
|
src: .profile
|
2021-09-11 16:05:58 +00:00
|
|
|
dest: "/home/{{ NITTER_USER }}/.bash_profile"
|
2021-09-11 16:01:59 +00:00
|
|
|
become: true
|
|
|
|
become_user: "{{ NITTER_USER }}"
|