Last active
November 12, 2020 16:21
-
-
Save demiters/f3e42897283e28cf87826824b5ed1e41 to your computer and use it in GitHub Desktop.
Ansible example playbook for installing software on and configuring Ubunutu 20.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: localhost | |
connection: local | |
become: yes | |
become_user: arturs | |
tasks: | |
- name: Install curl | |
apt: | |
name: curl | |
- name: Install nvm | |
shell: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash | |
args: | |
creates: "{{ ansible_env.HOME }}/.nvm/nvm.sh" | |
- name: Add Dropbox source list and GPG key; Add Docker’s GPG key and set up stable repository | |
shell: | |
cmd: | | |
echo "deb [arch=i386,amd64] http://linux.dropbox.com/ubuntu bionic main" | sudo tee -a /etc/apt/sources.list.d/dropbox.list | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1C61A2656FB57B7E4DE0F4C1FC918B335044912E | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
creates: /etc/apt/sources.list.d/dropbox.list | |
- name: Install git, Dropbox and Docker | |
apt: | |
name: | |
- git | |
- dropbox | |
- docker-ce | |
- docker-ce-cli | |
- containerd.io | |
update_cache: yes | |
state: latest | |
- name: Install Canonical Livepatch, Chromium | |
snap: | |
name: | |
- canonical-livepatch | |
- chromium | |
- name: Install VSCode | |
snap: | |
name: code | |
classic: yes | |
- name: Install Slack | |
snap: | |
name: slack | |
classic: yes | |
- name: Install Mackup | |
snap: | |
name: mackup | |
classic: yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment