fix: pacman use become
This commit is contained in:
parent
ff63a6b5e1
commit
78cb57e8c4
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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:
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user