diff --git a/deploy.yml b/deploy.yml index 4b72e91..21b0252 100644 --- a/deploy.yml +++ b/deploy.yml @@ -1,6 +1,33 @@ --- +# - hosts: all +# tasks: +# - name: Print message +# debug: +# msg: Hello Ansible World + - hosts: all + become: true + tasks: - - name: Print message - debug: - msg: Hello Ansible World \ No newline at end of file + ## Docker + # + - name: Add Docker GPG apt Key + apt_key: + url: https://download.docker.com/linux/ubuntu/gpg + state: present + + - name: Add Docker Repository + apt_repository: + repo: deb https://download.docker.com/linux/ubuntu jammy stable + state: present + + - name: Update apt and install docker-ce + apt: + name: docker-ce + state: latest + update_cache: true + + - name: install pip3 + apt: + name: python3-pip + state: latest