Regression testing corrections.

This commit is contained in:
Brian Lee 2023-11-19 08:17:12 -08:00
parent 8e0e8c9146
commit 9b34654c45
8 changed files with 38 additions and 13 deletions

View File

@ -17,7 +17,6 @@ None.
```yaml
- hosts: all
become: true
roles:
- bleetube.dotfiles
```

View File

@ -1,6 +1,11 @@
---
- import_tasks: vim.yml
- name: Copy the global vim configuration
ansible.builtin.copy:
src: vimrc.local
dest: /etc/
- name: Ensure Arch Linux sources bash_aliases
lineinfile:
path: /root/.bashrc
@ -15,7 +20,7 @@
loop:
- /etc/skel
- /root
- "{{ ansible_env.HOME }}/"
- "{{ ansible_env.PWD }}/"
- name: Copy bash aliases
ansible.builtin.copy:
@ -24,7 +29,7 @@
loop:
- /etc/skel
- /root
- "{{ ansible_env.HOME }}/"
- "{{ ansible_env.PWD }}/"
- name: Add root bashrc shell history configuration
lineinfile:

View File

@ -1,9 +1,14 @@
---
- import_tasks: vim.yml
- name: Copy the global vim configuration
ansible.builtin.copy:
src: vimrc.local
dest: /etc/vim/
- name: Ensure vim will source a global configuration file
ansible.builtin.blockinfile:
path: /etc/vimrc
path: /etc/vim/vimrc
marker: '" {mark} ANSIBLE MANAGED BLOCK'
block: |
set runtimepath+=/var/lib/vim/addons
@ -24,7 +29,7 @@
loop:
- /etc/skel
- /root
- "{{ ansible_env.HOME }}/"
- "{{ ansible_env.PWD }}/"
- name: Copy bash aliases
ansible.builtin.copy:

View File

@ -1,6 +1,11 @@
---
- import_tasks: vim.yml
- name: Copy the global vim configuration
ansible.builtin.copy:
src: vimrc.local
dest: /etc/
- name: Copy shell configuration
ansible.builtin.copy:
src: inputrc

View File

@ -1,9 +1,14 @@
---
- import_tasks: vim.yml
- name: Copy the global vim configuration
ansible.builtin.copy:
src: vimrc.local
dest: /etc/vim/
- name: Ensure vim will source a global configuration file
ansible.builtin.blockinfile:
path: /etc/vimrc
path: /etc/vim/vimrc
marker: '" {mark} ANSIBLE MANAGED BLOCK'
block: |
set runtimepath+=/var/lib/vim/addons

View File

@ -1,6 +1,11 @@
---
- import_tasks: vim.yml
- name: Copy the global vim configuration
ansible.builtin.copy:
src: vimrc.local
dest: /etc/
- name: Copy shell configuration
ansible.builtin.copy:
src: inputrc
@ -8,7 +13,7 @@
loop:
- /etc/skel
- /root
- "{{ ansible_env.HOME }}/"
- "{{ ansible_env.PWD }}/"
- name: Copy bash aliases
ansible.builtin.copy:

View File

@ -4,9 +4,15 @@
msg: "{{ ansible_distribution }}-{{ ansible_facts.distribution_major_version }}.yml"
- name: Run tasks based on the OS type, or a default if not found.
include_tasks: "{{ item }}"
include_tasks:
file: "{{ task_target }}"
apply:
become: yes
loop_control:
loop_var: task_target
with_first_found:
- "{{ ansible_distribution }}-{{ ansible_facts.distribution_major_version }}.yml"
- "{{ ansible_distribution }}.yml"
- "{{ ansible_os_family }}.yml"
- "default.yml"

View File

@ -8,8 +8,3 @@
ansible.builtin.copy:
src: ir_black.vim
dest: /var/lib/vim/addons/colors/
- name: Copy the global vim configuration
ansible.builtin.copy:
src: vimrc.local
dest: /etc/