standarizing cmake builds
This commit is contained in:
10
tasks/helpers/clean_install.yml
Normal file
10
tasks/helpers/clean_install.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Remove file list
|
||||
become: true
|
||||
loop: "{{ file_list }}"
|
||||
loop_control:
|
||||
loop_var: file
|
||||
ansible.builtin.file:
|
||||
state: absent
|
||||
path: "{{ file }}"
|
||||
@@ -2,18 +2,18 @@
|
||||
---
|
||||
- name: Configure {{ repo.git_path }}
|
||||
ansible.builtin.command:
|
||||
creates: "{{ repo.git_path }}/build"
|
||||
chdir: "{{ repo.git_path }}"
|
||||
argv: "{{ repo.build.configure }}"
|
||||
creates: "{{ src_path }}/build"
|
||||
chdir: "{{ src_path }}"
|
||||
argv: "{{ configure }}"
|
||||
|
||||
- name: Build {{ repo.git_path }}
|
||||
ansible.builtin.command:
|
||||
creates: "{{ repo.git_path }}/{{ repo.build.creates }}"
|
||||
chdir: "{{ repo.git_path }}"
|
||||
argv: "{{ repo.build.build }}"
|
||||
creates: "{{ build_creates }}"
|
||||
chdir: "{{ src_path }}"
|
||||
argv: "{{ build }}"
|
||||
|
||||
- name: Install {{ repo.git_push }}
|
||||
ansible.buitlin.command:
|
||||
creates: "{{ repo.prefix }}/{{ repo.build.installs }}"
|
||||
chdir: "{{ repo.git_path }}"
|
||||
argv: "{{ repo.build.install }}"
|
||||
ansible.builtin.command:
|
||||
creates: "{{ install_creates }}"
|
||||
chdir: "{{ src_path }}"
|
||||
argv: "{{ install }}"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
- name: Clone git repository {{ repo.repo }}
|
||||
- name: Clone git repository {{ src_pkg }}
|
||||
ansible.builtin.git:
|
||||
depth: 1
|
||||
force: true
|
||||
dest: "{{ repo.git_path }}"
|
||||
repo: "{{ repo.repo }}"
|
||||
version: "{{ repo.version | default(omit) }}"
|
||||
dest: "{{ src_path }}"
|
||||
repo: "{{ src_gitrepo }}"
|
||||
version: "{{ src_version | default(omit) }}"
|
||||
|
||||
Reference in New Issue
Block a user