Update roles/pips/tasks/main.yml
This commit is contained in:
@@ -20,13 +20,13 @@
|
|||||||
- name: Ensure python requirements file is present
|
- name: Ensure python requirements file is present
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: requirements.txt
|
src: requirements.txt
|
||||||
dest: "{{ app_dir.stat.path }}/requirements.txt"
|
dest: "{{ app_dir }}/requirements.txt"
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
when: app_dir.stat.exists == true and python_requirements is defined
|
when: app_dir.stat.exists == true and python_requirements is defined
|
||||||
|
|
||||||
- name: Install specified python requirements
|
- name: Install specified python requirements
|
||||||
ansible.builtin.pip:
|
ansible.builtin.pip:
|
||||||
requirements: "{{ app_dir.stat.path }}/requirements.txt"
|
requirements: "{{ app_dir }}/requirements.txt"
|
||||||
when: app_dir.stat.exists == true and python_requirements is defined
|
when: app_dir.stat.exists == true and python_requirements is defined
|
||||||
|
|
||||||
- name: Include extra Nagios/NRPE task logic
|
- name: Include extra Nagios/NRPE task logic
|
||||||
|
|||||||
Reference in New Issue
Block a user