Skip to content
Snippets Groups Projects
Commit 25854da1 authored by Karol Hennessy's avatar Karol Hennessy
Browse files

ansible update for pkg install

parent 78cf183b
Branches
Tags
No related merge requests found
......@@ -15,19 +15,17 @@
update_cache: yes
become: yes
- name: install software via apt
apt:
name: "{{ item }}"
name: "{{ rpi_swlist }}"
state: present
with_items: "{{ rpi_swlist }}"
become: yes
- name: pip install packages
pip:
executable: /usr/bin/pip3
name: "{{ item }}"
with_items: "{{ pip_list }}"
name: "{{ pip_list }}"
- name: mk dev dir
file:
......
......@@ -16,9 +16,8 @@
- name: install software via apt
apt:
name: "{{ item }}"
name: "{{ rpi_swlist }}"
state: present
with_items: "{{ rpi_swlist }}"
become: yes
- name: mk sw dir
......@@ -58,8 +57,7 @@
- name: pip install packages
pip:
executable: /usr/bin/pip3
name: "{{ item }}"
with_items: "{{ pip_list }}"
name: "{{ pip_list }}"
- name: install hev-display via apt
apt:
......
......@@ -11,5 +11,6 @@ rpi_swlist:
pip_list:
- libscrc
- pyserial_asyncio
......@@ -10,19 +10,33 @@
- name: install software via apt
apt:
name: "{{ item }}"
name: "{{ rpi_swlist }}"
state: present
with_items: "{{ rpi_swlist }}"
become: yes
- name: pip install packages
pip:
executable: /usr/bin/pip3
name: "{{ pip_list }}"
- name: archive old hev-sw
archive:
path: "{{ ansible_env.HOME }}/hev-sw"
dest: "{{ ansible_env.HOME }}/hev-sw.{{ '%Y%m%d%H%M%S' | strftime }}.tgz"
- name: remove old hev-sw
file:
path: "{{ ansible_env.HOME }}/hev-sw"
path: "{{ ansible_env.HOME }}/hev-sw/"
state: absent
- name: archive old hev-display
archive:
path: "{{ ansible_env.HOME }}/hev-display"
dest: "{{ ansible_env.HOME }}/hev-display.{{ '%Y%m%d%H%M%S' | strftime }}.tgz"
- name: remove old hev-display
file:
path: "{{ ansible_env.HOME }}/hev-display"
path: "{{ ansible_env.HOME }}/hev-display/"
state: absent
- name: clone git repo - hev-sw
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment