diff --git a/ansible/installation/int-qemu-agent.yaml b/ansible/installation/int-qemu-agent.yaml new file mode 100644 index 0000000..73b9f89 --- /dev/null +++ b/ansible/installation/int-qemu-agent.yaml @@ -0,0 +1,10 @@ +--- +- name: Install qemu-guest-agent package + hosts: all + become: true + become_method: sudo + tasks: + - name: Install qemu-guest-agent + apt: + name: qemu-guest-agent + state: present diff --git a/ansible/update/upd-apt.yaml b/ansible/update/upd-apt.yaml index e69de29..4c087e2 100644 --- a/ansible/update/upd-apt.yaml +++ b/ansible/update/upd-apt.yaml @@ -0,0 +1,26 @@ +--- +- name: Update and upgrade apt packages + hosts: all + tasks: + - name: Update packages with apt + when: ansible_pkg_mgr == 'apt' + apt: + update_cache: yes + + - name: Update packages with yum + when: ansible_pkg_mgr == 'yum' + yum: + name: '*' + state: latest + + - name: Upgrade packages with apt + when: ansible_pkg_mgr == 'apt' + apt: + upgrade: dist + + - name: Upgrade packages with yum + when: ansible_pkg_mgr == 'yum' + yum: + name: '*' + state: latest + exclude: kernel* \ No newline at end of file