summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Olech <nddr89@gmail.com>2021-03-14 00:43:06 +0100
committerAdam Olech <nddr89@gmail.com>2021-03-14 00:43:06 +0100
commit381ec8802b66bcc54e6dd9e02478add787d3bdef (patch)
tree2b23e1e702e720d6b2b121c1015ac27746c2b8ec
parent01245218702ab59084432b1812fc275601d7aea3 (diff)
Add some more tasks
-rw-r--r--ansible.cfg1
-rw-r--r--ep_cloud.yml39
2 files changed, 38 insertions, 2 deletions
diff --git a/ansible.cfg b/ansible.cfg
index 9948c8c..18a2d89 100644
--- a/ansible.cfg
+++ b/ansible.cfg
@@ -1,3 +1,4 @@
[defaults]
+deprecation_warnings = False
inventory = ./inventory.yml
remote_user = debian
diff --git a/ep_cloud.yml b/ep_cloud.yml
index f276eb2..a0f8b69 100644
--- a/ep_cloud.yml
+++ b/ep_cloud.yml
@@ -11,9 +11,44 @@
path: /usr/bin/python3
link: /usr/bin/python
- - name: Install GIT
+ - name: Ensure initial prerequisites
become: yes
apt:
- name: git
+ update_cache: yes
+ pkg:
+ - git
+ - apt-transport-https
+ - ca-certificates
+ - curl
+ - software-properties-common
+ - python3-pip
+ - virtualenv
+ - python3-setuptools
+
+ - name: Add Docker GPG key
+ become: yes
+ apt_key:
+ url: https://download.docker.com/linux/debian/gpg
+ state: present
+
+ - name: Add Docker repository
+ become: yes
+ apt_repository:
+ repo: deb https://download.docker.com/linux/debian buster stable
state: present
+
+ - name: Install Docker
+ become: yes
+ apt:
update_cache: yes
+ pkg:
+ - docker-ce
+ - docker-ce-cli
+ - containerd.io
+
+ - name: Ensure Docker service is enabled
+ become: yes
+ ansible.builtin.systemd:
+ name: docker
+ state: started
+ enabled: yes