disable host key checking, update inventory
This commit is contained in:
parent
50c0bc1e79
commit
e00e5c34e4
@ -3,3 +3,4 @@ inventory=./inventory
|
|||||||
remote_user="ansible"
|
remote_user="ansible"
|
||||||
roles_path=./roles
|
roles_path=./roles
|
||||||
collections_path=./collections
|
collections_path=./collections
|
||||||
|
host_key_checking = False
|
||||||
|
@ -20,7 +20,6 @@ node4 ansible_user=ansible
|
|||||||
node1
|
node1
|
||||||
|
|
||||||
[dhcp]
|
[dhcp]
|
||||||
nodex
|
|
||||||
|
|
||||||
[doc]
|
[doc]
|
||||||
doc ansible_user=pollen
|
doc ansible_user=pollen
|
||||||
@ -38,6 +37,14 @@ bane ansible_user=ansible ansible_connection=winrm ansible_winrm_transport=basic
|
|||||||
|
|
||||||
baxter
|
baxter
|
||||||
|
|
||||||
[servers:children]
|
[servers]
|
||||||
doc
|
doc
|
||||||
aws
|
aws
|
||||||
|
node1
|
||||||
|
node2
|
||||||
|
node3
|
||||||
|
node4
|
||||||
|
node5
|
||||||
|
node6
|
||||||
|
rhel0
|
||||||
|
docker0
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
vars:
|
vars:
|
||||||
group_vars: groups_vars/servers.yml
|
group_vars: groups_vars/servers.yml
|
||||||
tasks:
|
tasks:
|
||||||
- name: update package index on all machines
|
#- name: update package index on all machines
|
||||||
ansible.builtin.apt:
|
#ansible.builtin.apt:
|
||||||
update_cache: yes
|
#update_cache: yes
|
||||||
when: ansible_os_family == "Debian"
|
#when: ansible_os_family == "Debian"
|
||||||
|
|
||||||
- name: Upgrade all packages to latest version
|
- name: Upgrade all packages to latest version
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user