Refactor Ansible tasks to use fully qualified module names and improve code consistency
- Updated all tasks to use fully qualified module names (e.g., ansible.builtin.shell, ansible.builtin.copy) for clarity and to avoid ambiguity. - Replaced deprecated 'yum' module with 'dnf' for package management on RedHat-based systems. - Improved formatting and consistency in task definitions, including the use of double quotes for strings and consistent indentation. - Removed unnecessary comments and whitespace to enhance readability. - Ensured that conditions and loops are consistently formatted across all tasks.
This commit is contained in:
@@ -1,30 +1,28 @@
|
||||
---
|
||||
|
||||
- name: (shell.yml) Set default VIM configuration - file /etc/vim/vimrc exists
|
||||
copy:
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item }}"
|
||||
dest: /etc/vim/vimrc
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
mode: "0644"
|
||||
with_fileglob: "etc/vim/vimrc"
|
||||
tags:
|
||||
- shell-config
|
||||
- vim-config
|
||||
|
||||
- name: (shell.yml) Set default VIM configuration - file /etc/vim/vimrc.local exists
|
||||
copy:
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item }}"
|
||||
dest: /etc/vim/vimrc.local
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
mode: "0644"
|
||||
with_fileglob: "etc/vim/vimrc.local"
|
||||
tags:
|
||||
- shell-config
|
||||
- vim-config
|
||||
|
||||
|
||||
#- name: (shell.yml) Set default ZSH configuration - file /etc/zsh/zshrc
|
||||
# copy:
|
||||
# src: "{{ item }}"
|
||||
|
||||
Reference in New Issue
Block a user