From 04e660c838c33f28029c0e05495e1e72b0060e01 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Mon, 25 Sep 2023 22:30:52 +0100 Subject: [PATCH] fix cloud playbooks --- infra/cloud/0001_initialise_playbook.yaml | 5 ++--- infra/cloud/0002_software_playbook.yaml | 8 +++----- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/infra/cloud/0001_initialise_playbook.yaml b/infra/cloud/0001_initialise_playbook.yaml index e0553bb..69d68ae 100644 --- a/infra/cloud/0001_initialise_playbook.yaml +++ b/infra/cloud/0001_initialise_playbook.yaml @@ -1,5 +1,5 @@ - name: Initialise VM - hosts: cloud + hosts: cloud gather_facts: false tasks: - name: Wait for connection @@ -8,8 +8,7 @@ - name: Install system packages ansible.builtin.apt: update_cache: true - package: qemu-guest-agent - state: latest + pkg: qemu-guest-agent become: true - name: Enable qemu-guest-agent ansible.builtin.systemd: diff --git a/infra/cloud/0002_software_playbook.yaml b/infra/cloud/0002_software_playbook.yaml index b0561e3..964a76b 100644 --- a/infra/cloud/0002_software_playbook.yaml +++ b/infra/cloud/0002_software_playbook.yaml @@ -8,11 +8,10 @@ - name: Install dependencies ansible.builtin.apt: update_cache: true - package: + pkg: - curl - python3-apt - gpg - state: latest become: true - name: Add docker key ansible.builtin.apt_key: @@ -26,17 +25,16 @@ - name: Install docker ansible.builtin.apt: update_cache: true - pacakge: + pkg: - docker-ce - docker-ce-cli - containerd.io - docker-buildx-plugin - docker-compose-plugin - state: latest become: true - name: Enable docker ansible.builtin.systemd: name: docker state: started enabled: true - become: true \ No newline at end of file + become: true