32 lines
814 B
YAML
32 lines
814 B
YAML
---
|
|
- name: Clone fastfetch repository
|
|
ansible.builtin.git:
|
|
repo: https://github.com/fastfetch-cli/fastfetch.git
|
|
dest: /usr/local/src/fastfetch
|
|
version: master
|
|
update: yes
|
|
|
|
- name: Create build directory
|
|
ansible.builtin.file:
|
|
path: /usr/local/src/fastfetch/build
|
|
state: directory
|
|
|
|
- name: Run cmake to configure build
|
|
ansible.builtin.command:
|
|
cmd: cmake -G Ninja ..
|
|
chdir: /usr/local/src/fastfetch/build
|
|
args:
|
|
creates: /usr/local/src/fastfetch/build/build.ninja
|
|
|
|
- name: Build fastfetch with ninja
|
|
ansible.builtin.command:
|
|
cmd: ninja
|
|
chdir: /usr/local/src/fastfetch/build
|
|
args:
|
|
creates: /usr/local/src/fastfetch/build/fastfetch
|
|
|
|
- name: Install fastfetch binary
|
|
ansible.builtin.command:
|
|
cmd: ninja install
|
|
chdir: /usr/local/src/fastfetch/build
|