From b8fb28d748427ddd31d200a1df75af78a6c61768 Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 4 Sep 2022 00:09:20 +1200 Subject: [PATCH] pikaur --- ansible/playbooks/lab.yaml | 4 +++- ansible/roles/pikaur/tasks/main.yml | 29 +++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 ansible/roles/pikaur/tasks/main.yml diff --git a/ansible/playbooks/lab.yaml b/ansible/playbooks/lab.yaml index ee21ab6..07b52de 100644 --- a/ansible/playbooks/lab.yaml +++ b/ansible/playbooks/lab.yaml @@ -7,4 +7,6 @@ roles: - python - sshd - - firewall \ No newline at end of file + - firewall + - pikaur + #- zfs \ No newline at end of file diff --git a/ansible/roles/pikaur/tasks/main.yml b/ansible/roles/pikaur/tasks/main.yml new file mode 100644 index 0000000..393744c --- /dev/null +++ b/ansible/roles/pikaur/tasks/main.yml @@ -0,0 +1,29 @@ +--- +- name: create git parent dir + become: true + ansible.builtin.file: + path: /git + state: directory + owner: "{{ ansible_user }}" + group: "{{ ansible_user }}" + mode: 0775 + +- name: install pikaur prereqs + become: true + community.general.pacman: + name: + - base-devel + - git + state: latest + update_cache: true + reason: explicit + +- name: clone git repo + ansible.builtin.git: + repo: 'https://aur.archlinux.org/pikaur.git' + dest: /git/pikaur + depth: 1 + single_branch: yes + +- name: make +