style: format with prettier
This commit is contained in:
parent
9fd39749d5
commit
7f4622f4cf
@ -12,7 +12,7 @@
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
mode: 0755
|
||||
mode: "0755"
|
||||
loop:
|
||||
- "{{ xdg_data_home }}"
|
||||
- "{{ xdg_bin_home }}"
|
||||
|
@ -39,7 +39,8 @@ galaxy_info:
|
||||
# - 7
|
||||
# - 99.99
|
||||
|
||||
galaxy_tags: []
|
||||
galaxy_tags:
|
||||
[]
|
||||
# List tags for your role here, one per line. A tag is a keyword that describes
|
||||
# and categorizes the role. Users find roles by searching for tags. Be sure to
|
||||
# remove the '[]' above, if you add tags to this list.
|
||||
@ -47,6 +48,7 @@ galaxy_info:
|
||||
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
|
||||
# Maximum 20 tags per role.
|
||||
|
||||
dependencies: []
|
||||
dependencies:
|
||||
[]
|
||||
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
|
||||
# if you add dependencies to this list.
|
||||
|
@ -8,7 +8,7 @@
|
||||
become: true
|
||||
ansible.builtin.shell:
|
||||
cmd: >
|
||||
yes | pacman-key --recv-key FBA220DFC880C036 --keyserver keyserver.ubuntu.com && yes | pacman-key --lsign-key FBA220DFC880C036 && yes | pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'
|
||||
set -o pipefail; yes | pacman-key --recv-key FBA220DFC880C036 --keyserver keyserver.ubuntu.com && yes | pacman-key --lsign-key FBA220DFC880C036 && yes | pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'
|
||||
creates: /etc/pacman.d/chaotic-mirrorlist
|
||||
|
||||
- name: Install pacman.conf
|
||||
@ -18,7 +18,7 @@
|
||||
dest: /etc/pacman.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: 644
|
||||
mode: "0644"
|
||||
|
||||
- name: Update Pacman Caches
|
||||
become: true
|
||||
|
@ -39,7 +39,8 @@ galaxy_info:
|
||||
# - 7
|
||||
# - 99.99
|
||||
|
||||
galaxy_tags: []
|
||||
galaxy_tags:
|
||||
[]
|
||||
# List tags for your role here, one per line. A tag is a keyword that describes
|
||||
# and categorizes the role. Users find roles by searching for tags. Be sure to
|
||||
# remove the '[]' above, if you add tags to this list.
|
||||
@ -47,6 +48,7 @@ galaxy_info:
|
||||
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
|
||||
# Maximum 20 tags per role.
|
||||
|
||||
dependencies: []
|
||||
dependencies:
|
||||
[]
|
||||
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
|
||||
# if you add dependencies to this list.
|
||||
|
@ -39,7 +39,8 @@ galaxy_info:
|
||||
# - 7
|
||||
# - 99.99
|
||||
|
||||
galaxy_tags: []
|
||||
galaxy_tags:
|
||||
[]
|
||||
# List tags for your role here, one per line. A tag is a keyword that describes
|
||||
# and categorizes the role. Users find roles by searching for tags. Be sure to
|
||||
# remove the '[]' above, if you add tags to this list.
|
||||
@ -47,6 +48,7 @@ galaxy_info:
|
||||
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
|
||||
# Maximum 20 tags per role.
|
||||
|
||||
dependencies: []
|
||||
dependencies:
|
||||
[]
|
||||
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
|
||||
# if you add dependencies to this list.
|
||||
|
@ -69,12 +69,12 @@
|
||||
url: "{{ nvim_url }}"
|
||||
checksum: "{{ nvim_checksum }}"
|
||||
dest: "{{ nvim_archive_dest }}"
|
||||
mode: 0644
|
||||
mode: "0644"
|
||||
|
||||
- name: Create unpack directory
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
mode: 0644
|
||||
mode: "0644"
|
||||
path: "{{ nvim_unpacked_dest }}"
|
||||
|
||||
- name: Extract neovim archive
|
||||
|
@ -39,7 +39,8 @@ galaxy_info:
|
||||
# - 7
|
||||
# - 99.99
|
||||
|
||||
galaxy_tags: []
|
||||
galaxy_tags:
|
||||
[]
|
||||
# List tags for your role here, one per line. A tag is a keyword that describes
|
||||
# and categorizes the role. Users find roles by searching for tags. Be sure to
|
||||
# remove the '[]' above, if you add tags to this list.
|
||||
@ -47,6 +48,7 @@ galaxy_info:
|
||||
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
|
||||
# Maximum 20 tags per role.
|
||||
|
||||
dependencies: []
|
||||
dependencies:
|
||||
[]
|
||||
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
|
||||
# if you add dependencies to this list.
|
||||
|
@ -22,30 +22,32 @@
|
||||
state: present
|
||||
when: ansible_facts.distribution == 'MacOSX'
|
||||
|
||||
- name: Install direnv for RedHat based systems
|
||||
block:
|
||||
- name: Check if direnv installed
|
||||
ansible.builtin.stat:
|
||||
path: "{{ xdg_bin_home }}/direnv"
|
||||
register: direnv_installed
|
||||
changed_when: false
|
||||
- name: Check if direnv installed
|
||||
ansible.builtin.stat:
|
||||
path: "{{ xdg_bin_home }}/direnv"
|
||||
register: direnv_installed
|
||||
changed_when: false
|
||||
|
||||
|
||||
- name: Install direnv for RedHat based systems
|
||||
when:
|
||||
- ansible_facts.os_family == 'RedHat'
|
||||
- not direnv_installed.stat.exists
|
||||
block:
|
||||
- name: Create direnv working dir
|
||||
ansible.builtin.tempfile:
|
||||
state: directory
|
||||
register: direnv_work_dir
|
||||
when: not direnv_installed.stat.exists
|
||||
|
||||
- name: Download direnv installer script
|
||||
ansible.builtin.get_url:
|
||||
url: https://direnv.net/install.sh
|
||||
dest: "{{ direnv_work_dir.path }}/install.sh"
|
||||
mode: 744
|
||||
when: not direnv_installed.stat.exists
|
||||
mode: "0744"
|
||||
|
||||
- name: Install direnv
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
ansible.builtin.command: "bash {{ direnv_work_dir.path }}/install.sh"
|
||||
environment:
|
||||
bin_path: "{{ xdg_bin_home }}"
|
||||
when: not direnv_installed.stat.exists
|
||||
when: ansible_facts.os_family == 'RedHat'
|
||||
|
@ -29,7 +29,7 @@
|
||||
ansible.builtin.get_url:
|
||||
url: https://install.python-poetry.org/
|
||||
dest: "{{ poetry_install_dest }}"
|
||||
mode: 0644
|
||||
mode: "0644"
|
||||
when: not poetry_installed.stat.exists
|
||||
|
||||
- name: Install Poetry
|
||||
|
@ -19,7 +19,7 @@
|
||||
ansible.builtin.get_url:
|
||||
url: https://dot.net/v1/dotnet-install.sh
|
||||
dest: "{{ dotnet_work_dir.path }}/install.sh"
|
||||
mode: 0744
|
||||
mode: "0744"
|
||||
when: not dotnet_installed.stat.exists
|
||||
|
||||
- name: Run dotnet installer
|
||||
|
@ -26,7 +26,7 @@
|
||||
ansible.builtin.get_url:
|
||||
url: http://sh.rustup.rs
|
||||
dest: "{{ rust_working_dir.path }}/sh.rustup.rs"
|
||||
mode: 0755
|
||||
mode: "0755"
|
||||
force: true
|
||||
tags:
|
||||
- rust
|
||||
|
@ -18,7 +18,6 @@
|
||||
state: present
|
||||
when: ansible_facts.os_family == 'Debian'
|
||||
|
||||
|
||||
- name: Install Shellcheck for RedHat based systems
|
||||
become: true
|
||||
ansible.builtin.dnf:
|
||||
|
Loading…
Reference in New Issue
Block a user