|
|
@ -67,6 +67,14 @@ |
|
|
|
become: yes |
|
|
|
when: arch_based |
|
|
|
|
|
|
|
- name: Enable makepkg color |
|
|
|
replace: |
|
|
|
path: /etc/makepkg.conf |
|
|
|
regexp: '^BUILDENV=(.+)!color(.+)$' |
|
|
|
replace: 'BUILDENV=\1color\2' |
|
|
|
become: yes |
|
|
|
when: arch_based |
|
|
|
|
|
|
|
- name: Enable makepkg ccache |
|
|
|
replace: |
|
|
|
path: /etc/makepkg.conf |
|
|
@ -75,23 +83,33 @@ |
|
|
|
become: yes |
|
|
|
when: arch_based |
|
|
|
|
|
|
|
- name: Set makepkg MAKEFLAGS |
|
|
|
- name: Remove -mtune from makepkg CFLAGS |
|
|
|
replace: |
|
|
|
path: /etc/makepkg.conf |
|
|
|
regexp: '^#? *MAKEFLAGS=(.+)-j[0-9]+(.+)$' |
|
|
|
replace: "MAKEFLAGS=\\1-j{{ j }}\\2" |
|
|
|
regexp: '^#? *CFLAGS=(.+)-mtune=\S+\s(.*)$' |
|
|
|
replace: "CFLAGS=\\1\\2" |
|
|
|
become: yes |
|
|
|
vars: |
|
|
|
j: "{{ [ansible_processor_nproc - 1, 1] | max | int }}" |
|
|
|
when: arch_based |
|
|
|
tags: g |
|
|
|
|
|
|
|
- name: Enable makepkg color |
|
|
|
- name: Change -march to native from makepkg CFLAGS |
|
|
|
replace: |
|
|
|
path: /etc/makepkg.conf |
|
|
|
regexp: '^BUILDENV=(.+)!color(.+)$' |
|
|
|
replace: 'BUILDENV=\1color\2' |
|
|
|
regexp: '^#? *CFLAGS=(.+)-march=\S+(\s)(.*)$' |
|
|
|
replace: "CFLAGS=\\1-march=native\\2\\3" |
|
|
|
become: yes |
|
|
|
when: arch_based |
|
|
|
tags: g |
|
|
|
|
|
|
|
- name: Set makepkg MAKEFLAGS |
|
|
|
replace: |
|
|
|
path: /etc/makepkg.conf |
|
|
|
regexp: '^#? *MAKEFLAGS=(.+)-j[0-9]+(.+)$' |
|
|
|
replace: "MAKEFLAGS=\\1-j{{ j }}\\2" |
|
|
|
become: yes |
|
|
|
vars: |
|
|
|
j: "{{ [ansible_processor_nproc - 1, 1] | max | int }}" |
|
|
|
when: arch_based |
|
|
|
|
|
|
|
- name: Enable pacman ParallelDownloads |
|
|
|
lineinfile: |
|
|
@ -161,6 +179,9 @@ |
|
|
|
notify: "software changed" |
|
|
|
tags: softwarelist |
|
|
|
|
|
|
|
- debug: |
|
|
|
msg: "{{ packages }}" |
|
|
|
|
|
|
|
- name: Install packages (Arch-based) |
|
|
|
aur: |
|
|
|
name: "{{ packages }}" |
|
|
|