add basic tools
This commit is contained in:
parent
6b9a499fac
commit
e940e80c8e
3 changed files with 25 additions and 0 deletions
5
base.yml
Normal file
5
base.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env ansible-playbook
|
||||
---
|
||||
- hosts: all,
|
||||
roles:
|
||||
- base_config
|
3
group_vars/all/vars.yml
Normal file
3
group_vars/all/vars.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
# Use python 3
|
||||
ansible_python_interpreter: /usr/bin/python3
|
17
roles/base_config/tasks/main.yml
Normal file
17
roles/base_config/tasks/main.yml
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
- name: Install and update basic tools
|
||||
apt:
|
||||
update_cache: true
|
||||
name:
|
||||
- sudo
|
||||
- vim
|
||||
- htop
|
||||
- ntp
|
||||
- bash-completion
|
||||
- less
|
||||
- screen
|
||||
- git
|
||||
state: latest
|
||||
register: apt_result
|
||||
retries: 3
|
||||
until: apt_result is succeeded
|
Loading…
Reference in a new issue