fix: pacman use become

This commit is contained in:
Price Hiller 2022-08-05 15:39:49 -05:00
parent ff63a6b5e1
commit 78cb57e8c4
12 changed files with 13 additions and 0 deletions

View File

@ -23,6 +23,7 @@
when: ansible_facts.os_family == 'RedHat'
- name: Install git for Arch
become: true
community.general.pacman:
name: git
state: present

View File

@ -1,5 +1,6 @@
---
- name: Install direnv for Arch
become: true
community.general.pacman:
name:
- direnv

View File

@ -20,6 +20,7 @@
when: ansible_facts.os_family == 'RedHat'
- name: Install zsh for Arch
become: true
community.general.pacman:
name: zsh
state: present

View File

@ -12,6 +12,7 @@
when: ansible_facts.os_family == 'Debian'
- name: Install Golang for Arch
become: true
community.general.pacman:
name: go
state: present

View File

@ -31,6 +31,7 @@
when: ansible_facts.os_family == 'RedHat'
- name: Install opendjdk for Arch
become: true
community.general.pacman:
name:
- jdk-openjdk

View File

@ -29,6 +29,7 @@
when: ansible_facts.distribution == 'MacOSX'
- name: Install Lua for Arch
become: true
community.general.pacman:
name:
- lua

View File

@ -1,6 +1,7 @@
- name: Install Node for Arch
block:
- name: Install Node deps for Arch
become: true
community.general.pacman:
name:
- curl
@ -8,6 +9,7 @@
state: present
- name: Install Node for Arch
become: true
community.general.pacman:
name:
- nodejs

View File

@ -28,6 +28,7 @@
when: ansible_facts.distribution == 'MacOSX'
- name: Install prereqs for Arch
become: true
community.general.pacman:
name:
- wget

View File

@ -24,6 +24,7 @@
when: ansible_facts.os_family == 'Debian'
- name: Install Pyenv build dependencies for Arch systems
become: true
community.general.pacman:
update_cache: true
name:

View File

@ -16,6 +16,7 @@
when: ansible_facts.os_family == 'RedHat'
- name: Install Ruby for Arch
become: true
community.general.pacman:
name:
- ruby

View File

@ -33,6 +33,7 @@
when: ansible_facts.distribution == 'MacOSX'
- name: Install yamllint for Arch
become: true
community.general.pacman:
name: yamllint
state: present

View File

@ -12,6 +12,7 @@
when: ansible_facts.os_family == 'RedHat'
- name: Update Pacman cache
become: true
community.general.pacman:
update_cache: true
when: ansible_facts.distribution == 'Archlinux'