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 ```yaml
- hosts: all - hosts: all
become: true
roles: roles:
- bleetube.dotfiles - bleetube.dotfiles
``` ```

View File

@ -1,6 +1,11 @@
--- ---
- import_tasks: vim.yml - 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 - name: Ensure Arch Linux sources bash_aliases
lineinfile: lineinfile:
path: /root/.bashrc path: /root/.bashrc
@ -15,7 +20,7 @@
loop: loop:
- /etc/skel - /etc/skel
- /root - /root
- "{{ ansible_env.HOME }}/" - "{{ ansible_env.PWD }}/"
- name: Copy bash aliases - name: Copy bash aliases
ansible.builtin.copy: ansible.builtin.copy:
@ -24,7 +29,7 @@
loop: loop:
- /etc/skel - /etc/skel
- /root - /root
- "{{ ansible_env.HOME }}/" - "{{ ansible_env.PWD }}/"
- name: Add root bashrc shell history configuration - name: Add root bashrc shell history configuration
lineinfile: lineinfile:

View File

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

View File

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

View File

@ -1,9 +1,14 @@
--- ---
- import_tasks: vim.yml - 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 - name: Ensure vim will source a global configuration file
ansible.builtin.blockinfile: ansible.builtin.blockinfile:
path: /etc/vimrc path: /etc/vim/vimrc
marker: '" {mark} ANSIBLE MANAGED BLOCK' marker: '" {mark} ANSIBLE MANAGED BLOCK'
block: | block: |
set runtimepath+=/var/lib/vim/addons set runtimepath+=/var/lib/vim/addons

View File

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

View File

@ -4,9 +4,15 @@
msg: "{{ ansible_distribution }}-{{ ansible_facts.distribution_major_version }}.yml" msg: "{{ ansible_distribution }}-{{ ansible_facts.distribution_major_version }}.yml"
- name: Run tasks based on the OS type, or a default if not found. - 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: with_first_found:
- "{{ ansible_distribution }}-{{ ansible_facts.distribution_major_version }}.yml" - "{{ ansible_distribution }}-{{ ansible_facts.distribution_major_version }}.yml"
- "{{ ansible_distribution }}.yml" - "{{ ansible_distribution }}.yml"
- "{{ ansible_os_family }}.yml" - "{{ ansible_os_family }}.yml"
- "default.yml" - "default.yml"

View File

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