74 lines
1.7 KiB
YAML
74 lines
1.7 KiB
YAML
---
|
|
- name: Wait for APT Lock
|
|
ansible.builtin.include_tasks: shared/tasks/wait_apt.yml
|
|
|
|
- name: Install system administrator tools
|
|
ansible.builtin.apt:
|
|
name:
|
|
- bash
|
|
- mlocate
|
|
- joe
|
|
- nano
|
|
- sudo
|
|
- telnet
|
|
- ncdu
|
|
- screen
|
|
- git
|
|
- curl
|
|
- python3-pip
|
|
- apt-dater-host
|
|
- net-tools
|
|
install_recommends: false
|
|
|
|
- name: Stat mlocate
|
|
ansible.builtin.stat:
|
|
path: /var/lib/mlocate/mlocate.db
|
|
register: _mlocate
|
|
|
|
- name: Stat plocate
|
|
ansible.builtin.stat:
|
|
path: /var/lib/plocate/plocate.db
|
|
register: _plocate
|
|
|
|
- name: Run updatedb
|
|
when: not _mlocate.stat.exists and not _plocate.stat.exists
|
|
ansible.builtin.command:
|
|
cmd: updatedb
|
|
changed_when: true
|
|
|
|
- name: Profile.d
|
|
ansible.builtin.template:
|
|
src: profile.d/100-ansible.sh.j2
|
|
dest: /etc/profile.d/100-ansible.sh
|
|
mode: u=rwx,go=rx
|
|
|
|
- name: Profile.d
|
|
ansible.builtin.template:
|
|
src: profile.d/100-ansible.sh.j2
|
|
dest: /etc/profile.d/100-ansible.sh
|
|
mode: u=rwx,go=rx
|
|
|
|
- name: Disable wordwrap in the Joe editor
|
|
ansible.builtin.replace:
|
|
path: /etc/joe/ftyperc
|
|
regexp: '^(-wordwrap)$'
|
|
replace: ' \1'
|
|
|
|
- name: Directory /usr/local/bin
|
|
ansible.builtin.file:
|
|
path: /usr/local/bin
|
|
state: directory
|
|
mode: u=rwX,go=rX
|
|
|
|
- name: Create apt-get-noninteractive script
|
|
ansible.builtin.copy:
|
|
src: usr/local/bin/apt-get-noninteractive
|
|
dest: /usr/local/bin/apt-get-noninteractive
|
|
mode: u=rwx,go=
|
|
|
|
- name: Configure Apt-Dater to use APT wrapper
|
|
ansible.builtin.lineinfile:
|
|
path: /etc/apt-dater-host.conf
|
|
regexp: "^\\$DPKGTOOL="
|
|
line: '$DPKGTOOL="/usr/local/bin/apt-get-noninteractive";'
|