Move common env role to configure-env playbook

This commit is contained in:
2020-03-21 13:28:49 -04:00
parent fd2989cd66
commit 0b214f734c
6 changed files with 256 additions and 18 deletions

View File

@@ -0,0 +1,29 @@
---
- import_playbook: meta.yml
- name: Configure environment
hosts: all
tasks:
- name: Set hostname
become: true
hostname:
name: "{{ ansible_host }}"
- import_tasks: tasks/preprocess-users.yml
- name: Install network bash profile
become: true
copy:
src: bashrc.sh
dest: /home/{{ item.name }}/.bashrc
mode: 0644
loop: "{{ _users_local }}"
- name: Disable case-sensitive autocomplete
become: true
lineinfile:
path: /home/{{ item.name }}/.inputrc
line: set completion-ignore-case On
create: true
mode: 0644
loop: "{{ _users_local }}"