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 +