Install terraform.

This commit is contained in:
Tom Alexander
2024-06-23 18:26:54 -04:00
parent b0a2086b6c
commit 5d0fdd341a
11 changed files with 104 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
- name: Build aur packages
register: buildaur
become_user: "{{ build_user.name }}"
command: "aurutils-sync --no-view {{ item }}"
args:
creates: "/var/cache/pacman/custom/{{ item }}-*.pkg.tar.*"
loop:
- terraform-ls
- name: Update cache
when: buildaur.changed
pacman:
name: []
state: present
update_cache: true
- name: Install packages
package:
name:
- terraform-ls
state: present
# - name: Enable services
# systemd:
# enabled: yes
# name: "{{ item }}"
# daemon_reload: yes
# loop:
# - foo.service