Skip to content

Commit

Permalink
chore(lint): jinja templates at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed May 11, 2024
1 parent 3274826 commit 0340e58
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions tasks/python_generic.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
---

- name: "{{ py_data.version }} | Check that it is still not installed"
- name: "Python | Check that it is still not installed | {{ py_data.version }}"
become: true
ansible.builtin.stat:
path: "{{ py_data.bin }}"
register: already_installed
ignore_errors: true

- name: "{{ py_data.version }} | Download"
- name: "Python | Download | {{ py_data.version }}"
ansible.builtin.get_url:
url: "{{ py_data.url }}"
dest: "{{ py_data.tar_file }}"
checksum: "md5:{{ py_data.md5 }}"
mode: "0440"
when: not already_installed.stat.exists

- name: "{{ py_data.version }} | Uncompress"
- name: "Python | Uncompress | {{ py_data.version }}"
ansible.builtin.unarchive:
src: "{{ py_data.tar_file }}"
dest: /tmp
copy: false
creates: "{{ py_data.sources }}"
when: not already_installed.stat.exists

- name: "{{ py_data.version }} | Compile and install"
- name: "Python | Compile and install | {{ py_data.version }}"
become: true
ansible.builtin.command: "{{ item }}"
args:
Expand All @@ -36,7 +36,7 @@
register: output
changed_when: output.rc != 0

- name: "{{ py_data.version }} | Create python_major_version symlink"
- name: "Python | Create symlink | {{ py_data.version }}"
become: true
ansible.builtin.file:
src: "{{ py_data.install }}"
Expand Down
8 changes: 4 additions & 4 deletions tasks/venv.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
---

- name: "Virtualenv {{ py_data.version }} | Check if it is already installed"
- name: "Virtualenv | Check if it is already installed | {{ py_data.version }}"
become: true
ansible.builtin.stat:
path: "{{ py_data.install }}/bin/virtualenv"
register: already_installed
ignore_errors: true
when: should_install

- name: "Virtualenv for {{ py_data.version }} | Download"
- name: "Virtualenv | Download | {{ py_data.version }}"
ansible.builtin.get_url:
url: "{{ venv_data.url }}"
dest: "{{ venv_data.tar_file }}"
checksum: "md5:{{ venv_data.md5 }}"
mode: "0440"
when: should_install and not already_installed.stat.exists

- name: "Virtualenv for {{ py_data.version }} | Uncompress"
- name: "Virtualenv | Uncompress | {{ py_data.version }}"
ansible.builtin.unarchive:
src: "{{ venv_data.tar_file }}"
dest: /tmp
copy: false
when: should_install and not already_installed.stat.exists

- name: " {{ py_data.version }} | Install virtualenv"
- name: " Virtualenv | Install | {{ py_data.version }}"
become: true
ansible.builtin.command: "{{ item }}"
args:
Expand Down

0 comments on commit 0340e58

Please sign in to comment.