This repository has been archived on 2024-05-02. You can view files and clone it, but cannot push or open issues or pull requests.
omni-ansible/playbooks/configure-env.yml

28 lines
639 B
YAML
Raw Normal View History

---
- 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 }}"