Compare commits
7 Commits
ac606d534e
...
4f8e59e043
Author | SHA1 | Date |
---|---|---|
|
4f8e59e043 | |
|
f8f77aa4d6 | |
|
6184e13a88 | |
|
ffeb74f7d4 | |
|
7cf1b3543f | |
|
0785305a83 | |
|
3520fb2c14 |
|
@ -1,10 +1,4 @@
|
|||
---
|
||||
- name: create ~/.local/bin
|
||||
file:
|
||||
state: directory
|
||||
path: "{{ ansible_env.HOME }}/.local/bin"
|
||||
mode: "0750"
|
||||
|
||||
- name: install chezmoi
|
||||
shell: sh -c "$(curl -fsLS git.io/chezmoi)" && mv ~/bin/chezmoi ~/.local/bin/
|
||||
args:
|
||||
|
|
2
dnf.yml
2
dnf.yml
|
@ -4,5 +4,5 @@
|
|||
become_user: root
|
||||
become_method: sudo
|
||||
dnf:
|
||||
name: jq,vim,emacs,curl,htop,tmux,git,sqlite,sqlite-devel,make,automake,gcc,gcc-c++,kernel-devel,llvm,cmake,awscli,skopeo,ShellCheck,libtool,alien,fakeroot,openssl-devel,zlib-devel,flex,bison,uuid-devel,libtirpc-devel,libaio-devel,elfutils-libelf-devel,libffi-devel,libudev-devel,libblkid-devel,libuuid-devel,podman,libvirt-daemon-kvm,qemu-kvm,most,fzf,nodejs,npm,llvm10,clang,lsd
|
||||
name: ShellCheck,alien,automake,awscli,bison,clang,cmake,curl,elfutils-libelf-devel,emacs,fakeroot,flex,fzf,gcc,gcc-c++,git,htop,httpie,jq,kernel-devel,libaio-devel,libblkid-devel,libffi-devel,libtirpc-devel,libtool,libudev-devel,libuuid-devel,libvirt-daemon-kvm,llvm,llvm-devel,llvm10,lsd,make,man-pages,most,nodejs,npm,openssh,openssh-clients,openssl-devel,openssl-perl,perl-FindBin,podman,qemu-kvm,skopeo,sqlite,sqlite-devel,tmux,uuid-devel,vim,which,zlib-devel
|
||||
state: present
|
||||
|
|
2
go.yml
2
go.yml
|
@ -12,7 +12,7 @@
|
|||
become: yes
|
||||
become_user: root
|
||||
become_method: sudo
|
||||
when: ansible_facts['os_family']|lower == 'fedora'
|
||||
when: ansible_facts['os_family']|lower == 'redhat'
|
||||
dnf:
|
||||
name: golang
|
||||
state: present
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
- name: create ~/.bashrc.d
|
||||
file:
|
||||
state: directory
|
||||
path: "{{ ansible_env.HOME }}/.bashrc.d"
|
||||
mode: "0750"
|
||||
|
||||
- name: create ~/.local/bin
|
||||
file:
|
||||
state: directory
|
||||
path: "{{ ansible_env.HOME }}/.local/bin"
|
||||
mode: "0750"
|
||||
|
||||
- name: create ~/.ssh
|
||||
file:
|
||||
state: directory
|
||||
path: "{{ ansible_env.HOME }}/.ssh"
|
||||
mode: "0700"
|
|
@ -3,6 +3,11 @@
|
|||
hosts: all
|
||||
tasks:
|
||||
|
||||
- name: Register WSL variable
|
||||
ansible.builtin.shell: /bin/true
|
||||
register: wsl
|
||||
when: ansible_facts['kernel'] | regex_search("microsoft", ignorecase=True)
|
||||
|
||||
- name: Install the packages for Fedora
|
||||
import_tasks: dnf.yml
|
||||
when: ansible_facts['os_family']|lower == 'redhat'
|
||||
|
@ -22,11 +27,15 @@
|
|||
- name: Install rust via rustup
|
||||
import_tasks: rust.yml
|
||||
|
||||
- name: Create home directory structure
|
||||
import_tasks: homedir.yml
|
||||
|
||||
- name: Configure gnome settings
|
||||
import_tasks: gnome.yml
|
||||
vars:
|
||||
tela_icons_url: https://cloud.penguincoder.org/s/KqzGj5oEfTp5G57/download/01-Tela.tar.xz
|
||||
layan_dark_url: https://cloud.penguincoder.org/s/GQ2ygcmk2FxBofg/download/Layan-dark.tar.xz
|
||||
when: not wsl
|
||||
|
||||
- name: Install bitwarden cli
|
||||
import_tasks: bitwarden.yml
|
||||
|
|
2
pkg.yml
2
pkg.yml
|
@ -4,7 +4,7 @@
|
|||
become_user: root
|
||||
become_method: sudo
|
||||
community.general.pkgng:
|
||||
name: libtool,autogen,libuv,gettext,autoconf,automake,gmake,coreutils,bash,tmux,git,most,node,npm,cmake,llvm10,jq,gsed,lsd
|
||||
name: libtool,autogen,libuv,gettext,autoconf,automake,gmake,coreutils,bash,tmux,git,most,node,npm,cmake,llvm10,jq,gsed,lsd,httpie,fzf
|
||||
state: present
|
||||
|
||||
- name: install desktop pkg applications
|
||||
|
|
8
rust.yml
8
rust.yml
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: install rustup
|
||||
command: curl -o t.sh https://sh.rustup.rs -sSf && chmod 700 t.sh && ./t.sh --no-modify-path --verbose -y --default-toolchain stable && rm -f t.sh && ~/.cargo/bin/rustup install toolchain nightly
|
||||
command: /bin/bash -c "curl -sSf -o rustup_init https://sh.rustup.rs && /bin/bash rustup_init --no-modify-path --verbose -y --default-toolchain stable && rm -f rustup_init && source ~/.cargo/env && rustup install nightly"
|
||||
args:
|
||||
warn: False
|
||||
creates: "{{ ansible_env.HOME }}/.cargo/bin/rustup"
|
||||
|
@ -20,8 +20,8 @@
|
|||
args:
|
||||
creates: "{{ ansible_env.HOME }}/.cargo/bin/bat"
|
||||
|
||||
- name: install btm
|
||||
command: cargo install btm
|
||||
- name: install bottom
|
||||
command: cargo install bottom
|
||||
when: ansible_facts['system']|lower == 'linux'
|
||||
args:
|
||||
creates: "{{ ansible_env.HOME }}/.cargo/bin/btm"
|
||||
|
@ -63,7 +63,7 @@
|
|||
creates: "{{ ansible_env.HOME }}/.cargo/bin/frawk"
|
||||
|
||||
- name: install frawk linux
|
||||
command: cargo +nightly install frawk
|
||||
shell: LLVM_SYS_100_PREFIX=/usr/lib64/llvm10 cargo +nightly install frawk
|
||||
when: ansible_facts['system']|lower == 'linux'
|
||||
args:
|
||||
creates: "{{ ansible_env.HOME }}/.cargo/bin/frawk"
|
||||
|
|
Reference in New Issue