Skip to content

Commit

Permalink
install kicad before freecad
Browse files Browse the repository at this point in the history
  • Loading branch information
capsulecorplab committed Oct 18, 2023
1 parent 2e3ca65 commit 99d919e
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,37 @@
url: https://gist.githubusercontent.com/capsulecorplab/401ba2fe0857a328f2a626adbf078cc6/raw/b89a6234f0d620ff60bcfe37f95de197b8772377/.gitconfig
dest: /home/kasm-default-profile/

-
# install KiCad
hosts: localhost
connection: local
tags:
- install_kicad
- install_oshw_tools

vars:
kicad_version: "7.0.8"
kicad_version_to_install: "{{ kicad_version }}~ubuntu22.04.1"

tasks:
- name: Add PPA repository for KiCad 7.0
shell: add-apt-repository ppa:kicad/kicad-7.0-releases
- name: install KiCad {{ kicad_version }} with Apt
apt:
name: kicad={{ kicad_version_to_install }}
update_cache: yes
install_recommends: yes
- name: Get KiCad version
shell: kicad-cli version
register: installed_kicad_version
- name: Display KiCad versions
debug:
msg: "kicad = {{ installed_kicad_version.stdout }}"
- name: Test KiCad version
fail:
msg: "KiCad Version Error: Expected {{ kicad_version }} | Found {{ installed_kicad_version.stdout }}"
when: installed_kicad_version.stdout != kicad_version

-
# install FreeCAD
hosts: localhost
Expand Down Expand Up @@ -683,37 +714,6 @@
- linkml==1.4.1
- jinja2-cli==0.8.2

-
# install KiCad
hosts: localhost
connection: local
tags:
- install_kicad
- install_oshw_tools

vars:
kicad_version: "7.0.8"
kicad_version_to_install: "{{ kicad_version }}~ubuntu22.04.1"

tasks:
- name: Add PPA repository for KiCad 7.0
shell: add-apt-repository ppa:kicad/kicad-7.0-releases
- name: install KiCad {{ kicad_version }} with Apt
apt:
name: kicad={{ kicad_version_to_install }}
update_cache: yes
install_recommends: yes
- name: Get KiCad version
shell: kicad-cli version
register: installed_kicad_version
- name: Display KiCad versions
debug:
msg: "kicad = {{ installed_kicad_version.stdout }}"
- name: Test KiCad version
fail:
msg: "KiCad Version Error: Expected {{ kicad_version }} | Found {{ installed_kicad_version.stdout }}"
when: installed_kicad_version.stdout != kicad_version

# roles:
# - role: geerlingguy.pip

Expand Down

0 comments on commit 99d919e

Please sign in to comment.