set hostname during update_hosts.yml playbook

This commit is contained in:
2022-08-21 09:57:50 -04:00
parent 42c80b4894
commit bcbca14816
7 changed files with 82 additions and 43 deletions

View File

@@ -1,14 +1,18 @@
---
- name: update apt cache
apt:
update_cache: yes
cache_valid_time: 3600
- name: Install required packages
apt:
name: "{{ item }}"
update_cache: yes
cache_valid_time: 3600
state: latest
with_items:
- htop
- attr
- python3-psutil
- acl
- bind9-dnsutils
- iputils-ping
when: ansible_os_family == "Debian"