aur builder become changes
This commit is contained in:
parent
c12dfc18ce
commit
2b56d30666
@ -140,16 +140,14 @@
|
||||
update_cache: false
|
||||
|
||||
- name: Build aurutils
|
||||
become: true
|
||||
become_user: "{{ aur_repo_build_account }}"
|
||||
ansible.builtin.command:
|
||||
cmd: makepkg
|
||||
chdir: /tmp/aurutils
|
||||
creates: "{{ aur_repo_dir }}/packages/aurutils-{{ aurutils_pkgver }}-{{ aurutils_pkgrel }}-{{ aurutils_arch }}.pkg.tar"
|
||||
vars:
|
||||
ansible_become_user: "{{ aur_repo_build_account }}"
|
||||
|
||||
- name: Update repo database
|
||||
become: true
|
||||
become_user: "{{ aur_repo_build_account }}"
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- repo-add
|
||||
@ -162,6 +160,8 @@
|
||||
- aurutils-{{ aurutils_pkgver }}-{{ aurutils_pkgrel }}-{{ aurutils_arch }}.pkg.tar
|
||||
chdir: "{{ aur_repo_dir }}/packages"
|
||||
changed_when: true
|
||||
vars:
|
||||
ansible_become_user: "{{ aur_repo_build_account }}"
|
||||
|
||||
- name: Check if the signing key is in pacman keyring
|
||||
ansible.builtin.command:
|
||||
@ -212,13 +212,13 @@
|
||||
state: present
|
||||
update_cache: true
|
||||
|
||||
- name: Enable the multilib repository
|
||||
ansible.builtin.replace:
|
||||
path: /etc/pacman.conf
|
||||
backup: true
|
||||
regexp: '^[#]?\[multilib\]\n[#]?Include = \/etc\/pacman.d\/mirrorlist$'
|
||||
replace: '[multilib]\nInclude = /etc/pacman.d/mirrorlist'
|
||||
register: multilib_enable
|
||||
# - name: Enable the multilib repository
|
||||
# ansible.builtin.replace:
|
||||
# path: /etc/pacman.conf
|
||||
# backup: true
|
||||
# regexp: '^[#]?\[multilib\]\n[#]?Include = \/etc\/pacman.d\/mirrorlist$'
|
||||
# replace: '[multilib]\nInclude = /etc/pacman.d/mirrorlist'
|
||||
# register: multilib_enable
|
||||
|
||||
- name: Update the package database # noqa: no-handler
|
||||
when: multilib_enable.changed
|
||||
@ -226,14 +226,14 @@
|
||||
update_cache: true
|
||||
|
||||
- name: Sync AUR packages
|
||||
become: true
|
||||
become_user: "{{ aur_repo_build_account }}"
|
||||
ansible.builtin.command:
|
||||
cmd: aur sync --no-view -CnrS {{ item }}
|
||||
loop: "{{ aur_repo_host_packages }}"
|
||||
register: aur_sync_result
|
||||
changed_when: (aur_sync_result.stderr_lines | last | replace(':','')) != "sync there is nothing to do"
|
||||
failed_when: aur_sync_result.rc != 0
|
||||
vars:
|
||||
ansible_become_user: "{{ aur_repo_build_account }}"
|
||||
|
||||
- name: Add the root www folder if it doesn't exist
|
||||
ansible.builtin.file:
|
||||
|
Loading…
x
Reference in New Issue
Block a user