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' when: ansible_facts.os_family == 'RedHat'
- name: Install git for Arch - name: Install git for Arch
become: true
community.general.pacman: community.general.pacman:
name: git name: git
state: present state: present

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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