basic installs working
need to run tests on all the builds alone, should use a container system
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Install appimages
|
||||
- name: Install appimages {{ appimage.name }}
|
||||
become: "{{ install_become }}"
|
||||
become_user: "{{ install_become_user }}"
|
||||
block:
|
||||
- name: Ensure appimage path exists
|
||||
- name: Ensure appimage path exists {{ appimage.name }}
|
||||
ansible.builtin.file:
|
||||
path: "{{ path_appimage }}/{{ appimage.name }}"
|
||||
mode: "{{ appimage.mode | default('0755') }}"
|
||||
@@ -12,7 +12,7 @@
|
||||
group: "{{ appimage.group | default(ansible_user_gid) }}"
|
||||
state: directory
|
||||
|
||||
- name: Fetch appimage
|
||||
- name: Fetch appimage {{ appimage.name }}
|
||||
ansible.builtin.get_url:
|
||||
mode: "{{ appimage.mode | default('0755') }}"
|
||||
owner: "{{ appimage.owner | default(ansible_user_id) }}"
|
||||
@@ -22,7 +22,7 @@
|
||||
decompress: false
|
||||
backup: false
|
||||
|
||||
- name: Link appimage to bin
|
||||
- name: Link appimage to bin {{ appimage.name }}
|
||||
vars:
|
||||
links:
|
||||
- from: "{{ path_appimage }}/{{ appimage.name }}/{{ appimage.filename }}"
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
- archive.name is defined
|
||||
- archive.url is defined
|
||||
block:
|
||||
- name: Extract archive to given path
|
||||
- name: Extract archive to given path {{ archive.name }}
|
||||
block:
|
||||
- name: Ensure directory exists
|
||||
become: "{{ install_become }}"
|
||||
@@ -25,7 +25,7 @@
|
||||
owner: "{{ archive.owner | default(ansible_facts['user_id']) }}"
|
||||
group: "{{ archive.group | default(ansible_facts['user_gid']) }}"
|
||||
|
||||
- name: Download archive to cache
|
||||
- name: Download archive to cache {{ archive.name }}
|
||||
ansible.builtin.get_url:
|
||||
dest: "{{ d_cache.path }}/{{ archive.name }}"
|
||||
url: "{{ archive.url }}"
|
||||
@@ -33,7 +33,7 @@
|
||||
decompress: false
|
||||
mode: '0644'
|
||||
|
||||
- name: Extract archive
|
||||
- name: Extract archive {{ archive.name }}
|
||||
become: "{{ install_become }}"
|
||||
become_user: "{{ install_become_user }}"
|
||||
ansible.builtin.unarchive:
|
||||
@@ -43,7 +43,7 @@
|
||||
include: "{{ archive.include | default(omit) }}"
|
||||
exclude: "{{ archive.exclude | default(omit) }}"
|
||||
|
||||
- name: Symlink archive files
|
||||
- name: Symlink archive files {{ archive.name }}
|
||||
when:
|
||||
- archive.links is defined
|
||||
- archive.links | length > 0
|
||||
|
||||
@@ -1,4 +1,11 @@
|
||||
# vim: set filetype=yaml.ansible
|
||||
#
|
||||
## Helper: cargo.yml
|
||||
## Description: Install packages using the cargo command
|
||||
## Variables: top level 'dict'
|
||||
## name: package name on cargo
|
||||
## version: cargo version, omitted if empty
|
||||
## locked: _bool_, optional. Default false
|
||||
---
|
||||
- name: Dump install vars
|
||||
ansible.builtin.debug:
|
||||
|
||||
@@ -1,4 +1,15 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
#
|
||||
## Helper: cargo_buil.yml
|
||||
## Description: download source, build and install using cargo
|
||||
## Variables: top level 'dict'
|
||||
## source_dir: git source directory
|
||||
## repo: git repository url
|
||||
## depth: _int_ optional, Default 1. Git depth to clone
|
||||
## force_git: _bool_ optional, default true. Force clone, overwriting existing dir
|
||||
## recursive: _bool_ optional, default true. Do a recursive clone
|
||||
## version: _string_ optional, default 'latest'. Version to checkout and build
|
||||
## build_flags: _list[str]_ optional. If set, will append these to the build command
|
||||
---
|
||||
- name: Cargo source install helper
|
||||
block:
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
- name: Run configure target
|
||||
when:
|
||||
- pkg.target.configure is defined
|
||||
register: make_configure
|
||||
community.general.make:
|
||||
chdir: "{{ pkg.path }}"
|
||||
target: "{{ pkg.target.configure.name }}"
|
||||
@@ -23,6 +24,7 @@
|
||||
- name: Run build target
|
||||
when:
|
||||
- pkg.target.build is defined
|
||||
register: make_build
|
||||
community.general.make:
|
||||
chdir: "{{ pkg.path }}"
|
||||
target: "{{ pkg.target.build.name }}"
|
||||
@@ -41,14 +43,18 @@
|
||||
loop: "{{ pkg.targets.preinstall }}"
|
||||
loop_control:
|
||||
loop_var: target
|
||||
register: make_preinstall
|
||||
community.general.make:
|
||||
chdir: "{{ pkg.path }}"
|
||||
target: "{{ target.name }}"
|
||||
params: "{{ target.params | default(omit) }}"
|
||||
|
||||
- name: Run install target
|
||||
become: "{{ install_become }}"
|
||||
become_user: "{{ install_become_user }}"
|
||||
when:
|
||||
- pkg.targets.install is defined
|
||||
register: make_install
|
||||
community.general.make:
|
||||
chdir: "{{ pkg.path }}"
|
||||
target: "{{ pkg.targets.install.name }}"
|
||||
@@ -60,6 +66,7 @@
|
||||
loop: "{{ pkg.targets.postinstall }}"
|
||||
loop_control:
|
||||
loop_var: target
|
||||
register: make_postinstall
|
||||
community.general.make:
|
||||
chdir: "{{ pkg.path }}"
|
||||
target: "{{ target.name }}"
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
- name: Download and extract source archive
|
||||
when:
|
||||
- pkg.archive is defined
|
||||
ansible.bulitin.include_tasks: helpers/archive.yml
|
||||
ansible.builtin.include_tasks: helpers/archive.yml
|
||||
|
||||
- name: Ensure facts are set
|
||||
ansible.builtin.set_fact:
|
||||
|
||||
Reference in New Issue
Block a user