Skip to content

Ansible playbook for setting up Ubuntu machine setup for 22.04

License

Notifications You must be signed in to change notification settings

hschauhan/ubuntu-machine-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Initial Development Machine Setup on Ubuntu 22.04

This playbook will execute a initial development machine setup for Ubuntu 22.04 systems. A number of containers will be created with the options specified in the vars/default.yml variable file.

Settings

  • create_user: the name of the remote sudo user to create.
  • copy_local_key: path to a local SSH public key that will be copied as authorized key for the new user. By default, it copies the key from the current system user running Ansible.
  • sys_packages: array with list of packages that should be installed.

Running this Playbook

Quick Steps:

1. Obtain the playbook

git clone https://github.com/do-community/ansible-playbooks.git
cd ansible-playbooks/setup_ubuntu1804

2. Customize Options

nano vars/default.yml
#vars/default.yml
---
create_user: sammy
copy_local_key: "{{ lookup('file', lookup('env','HOME') + '/.ssh/id_rsa.pub') }}"
sys_packages: [ 'curl', 'vim', 'git', 'ufw']

3. Run the Playbook

ansible-playbook -l [target] -i [inventory file] -u [remote user] playbook.yml

About

Ansible playbook for setting up Ubuntu machine setup for 22.04

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published