Skip to content

Commit

Permalink
fix(lint): linted problems
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroSuero committed Apr 3, 2024
1 parent 214b62c commit c2311a6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion roles/go/tasks/Ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
- name: Go-Lang | GOARCH Value
ansible.builtin.debug:
# var: goarch
msg: "goarch = {{ goarch }}"
msg: goarch = {{ goarch }}

- name: Go-Lang | GOOS Value
ansible.builtin.debug:
Expand Down
36 changes: 18 additions & 18 deletions roles/zsh/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,75 +8,75 @@
ansible.builtin.include_tasks: "{{ ansible_distribution }}.yml"
when: zsh_distribution_config.stat.exists

- name: "ZSH | Detect oh-my-zsh"
- name: ZSH | Detect oh-my-zsh
ansible.builtin.stat:
path: "{{ ansible_user_dir }}/.oh-my-zsh"
register: ohmyzsh

- name: "ZSH | Register oh-my-zsh state"
- name: ZSH | Register oh-my-zsh state
ansible.builtin.set_fact:
ohmyzsh_is_installed: "{{ ohmyzsh.stat.exists }}"

- name: "ZSH | Debug ohmyzsh_is_installed"
- name: ZSH | Debug ohmyzsh_is_installed
ansible.builtin.debug:
var: ohmyzsh_is_installed

- name: "ZSH | Install oh-my-zsh"
- name: ZSH | Install oh-my-zsh
when: not ohmyzsh_is_installed
block:
- name: "ZSH | Download oh-my-zsh Install Script"
- name: ZSH | Download oh-my-zsh Install Script
ansible.builtin.get_url:
url: https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh
dest: /{{ ansible_user_dir }}/oh-my-zsh.install.sh
force: true
mode: "0755"
notify:
- "ZSH | Cleanup oh-my-zsh install script"
- ZSH | Cleanup oh-my-zsh install script

- name: "ZSH | Run the install script"
- name: ZSH | Run the install script
ansible.builtin.script:
cmd: /{{ ansible_user_dir }}/oh-my-zsh.install.sh

- name: "ZSH | Copy .zshrc"
- name: ZSH | Copy .zshrc
ansible.builtin.copy:
src: ".zshrc"
src: .zshrc
dest: "{{ ansible_user_dir }}/.zshrc"
mode: "0755"

- name: "ZSH | Copy custom zsh config"
- name: ZSH | Copy custom zsh config
ansible.builtin.copy:
dest: "{{ ansible_user_dir }}/.config/"
src: "zsh"
src: zsh
mode: "0755"
directory_mode: "0755"
force: true

- name: "ZSH | Copy local scripts"
- name: ZSH | Copy local scripts
ansible.builtin.copy:
dest: "{{ ansible_user_dir }}/.local/bin/"
src: "{{ role_path }}/files/zsh/bin/"
mode: "0755"
force: true
become: true

- name: "ZSH | Set default terminal"
- name: ZSH | Set default terminal
ansible.builtin.user:
name: "{{ host_user }}"
shell: /bin/zsh
become: true

- name: "ZSH | Identify distribution config | {{ ansible_distribution }}"
- name: ZSH | Identify distribution config | {{ ansible_distribution }}
ansible.builtin.stat:
path: "{{ role_path }}/files/os/{{ ansible_distribution }}"
register: zsh_os_distribution_config

- name: "ZSH | Identify os family config | {{ ansible_os_family }}"
- name: ZSH | Identify os family config | {{ ansible_os_family }}
ansible.builtin.stat:
path: "{{ role_path }}/files/os/{{ ansible_os_family }}"
register: zsh_os_family_config
when: not zsh_os_distribution_config.stat.exists

- name: "ZSH | Calculate os config src"
- name: ZSH | Calculate os config src
ansible.builtin.set_fact:
zsh_os_config: "{{ zsh_os_distribution_config if zsh_os_distribution_config.stat.exists else zsh_os_family_config }}"

Expand All @@ -90,12 +90,12 @@
- zsh_os_config is defined
- zsh_os_config.stat.exists

- name: "ZSH | zsh-autosuggestions"
- name: ZSH | zsh-autosuggestions
ansible.builtin.git:
repo: https://github.com/zsh-users/zsh-autosuggestions # noqa: latest
dest: "{{ ansible_user_dir }}/.oh-my-zsh/custom/plugins/zsh-autosuggestions"

- name: "ZSH | zsh-syntax-highlighting"
- name: ZSH | zsh-syntax-highlighting
ansible.builtin.git:
repo: https://github.com/zsh-users/zsh-syntax-highlighting # noqa: latest
dest: "{{ ansible_user_dir }}/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting"

0 comments on commit c2311a6

Please sign in to comment.