diff options
| author | Adam Olech <nddr89@gmail.com> | 2021-03-14 00:43:06 +0100 |
|---|---|---|
| committer | Adam Olech <nddr89@gmail.com> | 2021-03-14 00:43:06 +0100 |
| commit | 381ec8802b66bcc54e6dd9e02478add787d3bdef (patch) | |
| tree | 2b23e1e702e720d6b2b121c1015ac27746c2b8ec /ep_cloud.yml | |
| parent | 01245218702ab59084432b1812fc275601d7aea3 (diff) | |
Add some more tasks
Diffstat (limited to 'ep_cloud.yml')
| -rw-r--r-- | ep_cloud.yml | 39 |
1 files changed, 37 insertions, 2 deletions
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 |
