disable host key checking, update inventory

This commit is contained in:
Ibrahim Mkusa 2025-01-05 13:09:23 -05:00
parent 50c0bc1e79
commit e00e5c34e4
3 changed files with 14 additions and 6 deletions

View File

@ -3,3 +3,4 @@ inventory=./inventory
remote_user="ansible"
roles_path=./roles
collections_path=./collections
host_key_checking = False

View File

@ -20,7 +20,6 @@ node4 ansible_user=ansible
node1
[dhcp]
nodex
[doc]
doc ansible_user=pollen
@ -38,6 +37,14 @@ bane ansible_user=ansible ansible_connection=winrm ansible_winrm_transport=basic
baxter
[servers:children]
[servers]
doc
aws
node1
node2
node3
node4
node5
node6
rhel0
docker0

View File

@ -5,10 +5,10 @@
vars:
group_vars: groups_vars/servers.yml
tasks:
- name: update package index on all machines
ansible.builtin.apt:
update_cache: yes
when: ansible_os_family == "Debian"
#- name: update package index on all machines
#ansible.builtin.apt:
#update_cache: yes
#when: ansible_os_family == "Debian"
- name: Upgrade all packages to latest version
ansible.builtin.apt: