Skip to content

Commit

Permalink
delint
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrothstein committed Feb 23, 2024
1 parent 6abbe7e commit 18aaee2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .config/ansible-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
skip_list:
- 'name[template]'
3 changes: 3 additions & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
rules:
line-length: disable
16 changes: 6 additions & 10 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
paths:
- '{{ role_path }}/vars'

- name: install Miniconda OS pkg dependencies
- name: Install Miniconda OS pkg dependencies
become: '{{ miniconda_escalate }}'
become_user: root
with_items: '{{ miniconda_dep_pkgs | default([]) }}'
Expand Down Expand Up @@ -67,14 +67,9 @@
- name: Installing....
become: '{{ miniconda_escalate }}'
become_user: root
environment:
TMPDIR: '{{ miniconda_tmp_dir }}'
ansible.builtin.shell: |-
set -ex;
if [ -n "{{ miniconda_umask }}" ];
then
umask {{ miniconda_umask }}
fi;
[ -n "{{ miniconda_umask }}" ] && umask {{ miniconda_umask }};
TMPDIR='{{ miniconda_tmp_dir }}' \
bash \
{{ miniconda_tmp_dir }}/{{ miniconda_installer_sh }} \
-b \
Expand All @@ -94,15 +89,16 @@
- name: Deleting installer...
become: '{{ miniconda_escalate }}'
become_user: root
file:
ansible.builtin.file:
path: '{{ miniconda_tmp_dir }}/{{ miniconda_installer_sh }}'
state: absent

- name: Update conda pkgs...
become: '{{ miniconda_escalate }}'
become_user: root
when: miniconda_pkg_update
shell: |-
changed_when: false
ansible.builtin.shell: |-
[ -n "{{ miniconda_umask }}" ] && umask {{ miniconda_umask }};
{{ miniconda_conda_bin }} update -y --all
Expand Down

0 comments on commit 18aaee2

Please sign in to comment.